UNPKG

@nullvoxpopuli/ember-composable-helpers

Version:
17 lines (14 loc) 419 B
import { helper } from '@ember/component/helper'; import { isArray, A } from '@ember/array'; function objectAt(index, array) { if (!isArray(array)) { return undefined; } index = parseInt(index, 10); return A(array).objectAt(index); } var objectAt$1 = helper(function ([index, array]) { return objectAt(index, array); }); export { objectAt$1 as default, objectAt }; //# sourceMappingURL=object-at.js.map