mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
505a228a03
commit
6db5d0c4f8
@ -64,12 +64,16 @@ Array.prototype.includes
|
|||||||
// first/last element access short-hands...
|
// first/last element access short-hands...
|
||||||
//
|
//
|
||||||
// .first()
|
// .first()
|
||||||
|
// .last()
|
||||||
// -> elem
|
// -> elem
|
||||||
//
|
//
|
||||||
// .first(value)
|
// .first(value)
|
||||||
|
// .last(value)
|
||||||
// -> array
|
// -> array
|
||||||
//
|
//
|
||||||
//
|
// NOTE: setting a value will overwrite an existing first/last value.
|
||||||
|
// NOTE: for an empty array both .first(..)/.last(..) will return undefined
|
||||||
|
// when getting a value and set the 0'th value when setting...
|
||||||
Array.prototype.first
|
Array.prototype.first
|
||||||
|| (Array.prototype.first = function(value){
|
|| (Array.prototype.first = function(value){
|
||||||
return arguments.length > 0 ?
|
return arguments.length > 0 ?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user