import {
  ComputeOptions,
  computeValue
} from "../../core";
const $last = (collection, expr, options) => {
  if (collection.length === 0) return void 0;
  const obj = collection[collection.length - 1];
  const copts = ComputeOptions.init(options).update(obj);
  return computeValue(obj, expr, null, copts);
};
export {
  $last
};
