Skip to content

knowledgecode/array.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Array.js

Array.js adds fallback functions of array for legacy browsers. (ex. IE6-8)
You'll be able to use array functions that has been introduced in ECMA-262 5th Edition in those browsers.

Methods

Return true if a variable is an array, if not false.

Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.

Returns the last (greatest) index of an element within the array equal to the specified value, or -1 if none is found.

Calls a function for each element in the array.

Returns true if every element in this array satisfies the provided testing function.

Returns true if at least one element in this array satisfies the provided testing function.

Creates a new array with all of the elements of this array for which the provided filtering function returns true.

Creates a new array with the results of calling a provided function on every element in this array.

Apply a function simultaneously against two values of the array (from left-to-right) as to reduce it to a single value.

Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.

License

Array.js is available under the terms of the MIT license.

About

fallback functions of array for legacy browsers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published