add core docs
This commit is contained in:
47
docs/dull/globals/Array.md
Normal file
47
docs/dull/globals/Array.md
Normal file
@@ -0,0 +1,47 @@
|
||||
# Array
|
||||
|
||||
### length <sub>number</sub>
|
||||
|
||||
### name <sub>string</sub>
|
||||
|
||||
### prototype <sub>object</sub>
|
||||
|
||||
### isArray(value) <sub>function</sub>
|
||||
|
||||
Determine if the given value is an Array. Returns true if the argument is an array, otherwise false.
|
||||
|
||||
|
||||
|
||||
**value**: The value to be checked.
|
||||
|
||||
|
||||
**Returns**: True if 'value' is an array, otherwise false.
|
||||
|
||||
|
||||
### from(arrayLike, mapFn, thisArg) <sub>function</sub>
|
||||
|
||||
Create a new array from an array-like or iterable object. An optional map function can be invoked on each element before it is added to the new array.
|
||||
|
||||
|
||||
|
||||
**arrayLike**: An array-like or iterable object to convert.
|
||||
|
||||
**mapFn**: Optional. A function to call on every element of the new array.
|
||||
|
||||
**thisArg**: Optional. A value to use as 'this' within the map function.
|
||||
|
||||
|
||||
**Returns**: A new array populated with elements processed from arrayLike.
|
||||
|
||||
|
||||
### of(elements) <sub>function</sub>
|
||||
|
||||
Create a new array with a variable number of arguments, regardless of the number or type of the arguments. Unlike the Array constructor, there is no special treatment for a single numeric argument.
|
||||
|
||||
|
||||
|
||||
**elements**: A variable number of arguments which become array elements.
|
||||
|
||||
|
||||
**Returns**: A new array containing the provided arguments.
|
||||
|
||||
Reference in New Issue
Block a user