Please enable JavaScript.
Coggle requires JavaScript to display documents.
ARRAYS - Coggle Diagram
ARRAYS
ELEMENTS
Adding
End
push(vals...)
Begin
unshift
Middle
splice(...)
index
deleteCount=0
vals...
Finding
Primitive
indexOf(...)
val
[fromIdx]
lastIndexOf
Includes
Absent
-1
Reference
find(function (item) {...})
Return
Bool
For
Item
Absent
Undefined
findIndex
Absent
-1
Removing
End
pop()
Begin
shift()
Middle
splice(...)
Index
DeleteCount>=1
MANIPULATE
Filtering
Filter(...)
Function(...)
value
[index]
[arr]
Return
Bool
To
Include
Mapping
Map(...)
Function(...)
value
[idx]
[arr]
Return
Modified
Item
Reducing
Reduce(...)
Function(...)
Accumulator
CurrentValue
Return
Next
Value
Accumulator
IntialValue
Accumulator
ORGANIZE
Sorting
Primitive
Sort()
Reverse()
Convert
String
Reference
Sort(function(a,b) {...})
Return
Result
a<b
-1
a>b
1
a===b
0
Case-Insense
toLowerCase
Slicing
Arr.slice(...)
startIndex
[endIndexExclusive]
Copy
Slice()
[...arr]
Emptying
Reassign
Let
[]
Arr.Length
Set
0
Splice(...)
0
Arr.Length
While
Length > 0
Pop()
PRESENT
Combining
Arr1.concat(Arr2)
[...arr1, ...arr2]
Joining
StringRep
Arr.join( [Separator] )
Str.Split(separator)
Url-Slug
Building
ITERATE
Iterating
ForEach(...)
function(...)
item
[idx]
Testing
Every(...)
Stop
Failing
Some(...)
Stop
True
First
function(...)
value
[index]
[arr]
Return
Bool