array-all-x
Like Array.forEach but does not skip holes.
Last updated 5 years ago by xotic750 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install array-all-x 
SYNC missed versions from official npm registry.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

array-all-x

Like Array.forEach but does not skip holes.

module.exports

This method executes a provided function once for each array element.

Kind: Exported member
Throws:

  • TypeError If array is null or undefined.
  • TypeError If callBack is not a function.
Param Type Description
array array The array to iterate over.
callBack function Function to execute for each element.
[thisArg] * Value to use as this when executing callback.

Example

import all from 'array-all-x';

const items = ['item1', 'item2', 'item3'];
const copy = [];

all(items, function(item) {
  copy.push(item);
});

console.log(copy); // ['item1', 'item2', 'item3']

Current Tags

  • 1.1.2                                ...           latest (5 years ago)

6 Versions

  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE