npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ember-array-fns

v1.4.2

Published

This addon provides array helpers for Ember templates and components.

Downloads

4,605

Readme

ember-array-fns npm version Build Status codecov

This addon provides array helpers for Ember templates and components.

To install:

ember install ember-array-fns

Usage

array-concat

Perform concatenation of two or more arrays. See Array.concat() for details on the Array.concat function.

{{array-concat array1 array2 array3}}

array-every

Perform every of array by function. See Array.every() for details on the Array.every function.

{{array-every array fn}}

array-filter

Perform filter of array by function. See Array.filter() for details on the Array.filter function.

{{array-filter array fn}}

array-find

Perform find of array by function. See Array.find() for details on the Array.find function.

{{array-find array fn}}

array-find-index

Perform find of array by function returning the index of the found element. See Array.findIndex() for details on the Array.findIndex function.

{{array-find-index array fn}}

array-includes

Determine if item is in array. See Array.includes() for details on the Array.includes function.

{{array-includes array 'a'}}

array-indexOf

Locate first index of element in array. See Array.indexOf() for details on the Array.indexOf function.

{{array-index-of array 'a'}}

array-is-array

Determine if value is an array. See isArray() for details on the isArray function.

{{array-is-array array}}

array-is-first-element

Returns true if element is first within the array.

{{array-is-first-element array element}}

array-is-last-element

Returns true if element is last within the array.

{{array-is-last-element array element}}

array-join

Join an array by a string delimiter. See Array.join() for details on the Array.join function.

{{array-join array '-'}}

array-last-index-of

Locate last index of element in array. See Array.lastIndexOf() for details on the Array.lastIndexOf function.

{{array-last-index-of array 'a'}}

array-map

Perform map of array by function. See Array.map() for details on the Array.map function.

{{array-map array fn}}

array-reduce

Perform reduce of array by function. See Array.reduce() for details on the Array.reduce function.

{{array-reduce array fn accumulator}}

array-reverse

Perform reverse of array. See Array.reverse() for details on the Array.reverse function.

{{array-reverse array}}

array-slice

Perform slice of array. See Array.slice() for details on the Array.slice function.

{{array-slice array 2 4}}

array-some

Perform some of array by function. See Array.some() for details on the Array.some function.

{{array-some array fn}}

array-sort

Perform sort of array by function. See Array.sort() for details on the Array.sort function.

{{array-sort array fn}}

array-splice

Perform splice of array. See Array.splice() for details on the Array.splice function.

{{array-splice array 1 0 'February'}}

Related Addons

Compatibility

  • Ember.js v3.4 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.