This addon provides array helpers for Ember templates and components.
To install:
ember install ember-array-fns
array-concat
array-every
array-filter
array-find
array-find-index
array-includes
array-index-of
array-is-array
array-is-first-element
array-is-last-element
array-join
array-last-index-of
array-map
array-reduce
array-reverse
array-slice
array-some
array-sort
array-splice
Perform concatenation of two or more arrays. See Array.concat() for details on the Array.concat function.
Perform every of array by function. See Array.every() for details on the Array.every function.
Perform filter of array by function. See Array.filter() for details on the Array.filter function.
Perform find of array by function. See Array.find() for details on the Array.find function.
Perform find of array by function returning the index of the found element. See Array.findIndex() for details on the Array.findIndex function.
Determine if item is in array. See Array.includes() for details on the Array.includes function.
Locate first index of element in array. See Array.indexOf() for details on the Array.indexOf function.
Determine if value is an array. See isArray() for details on the isArray function.
Returns true if element is first within the array.
Returns true if element is last within the array.
Join an array by a string delimiter. See Array.join() for details on the Array.join function.
Locate last index of element in array. See Array.lastIndexOf() for details on the Array.lastIndexOf function.
Perform map of array by function. See Array.map() for details on the Array.map function.
Perform reduce of array by function. See Array.reduce() for details on the Array.reduce function.
Perform reverse of array. See Array.reverse() for details on the Array.reverse function.
Perform slice of array. See Array.slice() for details on the Array.slice function.
Perform some of array by function. See Array.some() for details on the Array.some function.
Perform sort of array by function. See Array.sort() for details on the Array.sort function.
Perform splice of array. See Array.splice() for details on the Array.splice function.
- See ember-datetime-fns for date and time based helpers.
- See ember-intl-fns for internationalization based helpers.
- See ember-logic-fns for logical based helpers.
- See ember-math-fns for math based helpers.
- See ember-number-fns for number based helpers.
- See ember-string-fns for string based helpers.
- Ember.js v3.4 or above
- Ember CLI v2.13 or above
- Node.js v8 or above
See the Contributing guide for details.
This project is licensed under the MIT License.