package
Array / object / string iteration utility
npm install component-eachGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Array / object / string iteration utility.
$ component install component/eachIterate an array:
each([1,2,3], function(num, i){
})Optionally pass a context object:
each([1,2,3], function(num, i){
}, this)Iterate an object's key / value pairs:
each(conf, function(key, val){
})Iterate an array-ish object (has numeric .length):
each(collection, function(val, i){
})Iterate a string's characters:
each('hello', function(c, i){
})MIT
Estimated unpacked size across 4 packages.
4.0 kB
Includes dependencies.
dfcreative
df.creative@gmail.com
rauchg
rauchg@gmail.com
retrofox
rdsuarez@gmail.com
coreh
thecoreh@gmail.com
forbeslindesay
forbes@lindesay.co.uk
kelonye
kelonyemitchel@gmail.com
mattmueller
mattmuelle@gmail.com
yields
yields@icloud.com
anthonyshort
antshort@gmail.com
jongleberry
jonathanrichardong@gmail.com
ianstormtaylor
ian@ianstormtaylor.com
cristiandouce
cristiandouce@gmail.com
swatinem
arpad.borsos@googlemail.com
stagas
gstagas@gmail.com
amasad
amjad.masad@gmail.com
juliangruber
julian@juliangruber.com
calvinfo
calvin@calv.info
dominicbarnes
dominic@dbarnes.info
timoxley
secoif@gmail.com
jonathanong
jonathanrichardong@gmail.com
queckezz
fabian.eichenberger@gmail.com
nami-doc
vendethiel@hotmail.fr
clintwood
clint@anotherway.co.za
thehydroimpulse
dnfagnan@gmail.com
stephenmathieson
me@stephenmathieson.com
trevorgerhardt
trevorgerhardt@gmail.com
timaschew
timaschew@gmail.com
hughsk
hughskennedy@gmail.com
1.0.0
2.0.0