Inline Functions Flashcards

1
Q

{{get}}

A

extracts things out of an array or collection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

{{split}}

A

splits names and arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

[] Sqaure Brackets

A

Indicates an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

{{join}}

A

It’s going to join the array in a text string with a seperator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

{{length}}

A

It will output how many items are in the array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

{{keys}}

A

it’s gonna tell us what the individual keys are from the collection (it will output the raw names).. not useful for arrays because it will count from 0 instead of 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

{{slice}}

A

selects parts of an array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

{{merge}}

A

Opposite of slice, it adds an array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

{{contain}}

A

it’s going to check if an array contains something and will output true or false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

{{remove}} works with simpler array

A

removes something from the array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

{{add}}

A

adds something to the array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

{{map}} most useful

A

looks through a complex array and pulls out certain keys

13.2 Array Video … 5:13 seconds use case and explanations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

{{shuffle}}

A

rearrange the order randomly on all the items within an array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

{{sort}}

A

Opposite of shuffle - take information and put it back in order

asc = Ascending order

We can sort by the deepest point in the array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

{{reverse}}

A

reverse order of items

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

{{first}}

A

extract the first item from an array

17
Q

{{last}}

A

extract the last item from the array

18
Q

{{flatten}}

A

From complex arrays, it will move the deep arrays to the same level

19
Q

{{distinct}}

A

removes duplicates if we want… we can deep level into the arrays.

20
Q

{{deduplicate}}

A

it will remove the duplicates, but simpler instead (can’t go deep)

21
Q

{{toCollection}}

A

Convert an array to a collection

I want the keys to come from item 1, and the values from item 2

(Key-Value Pair)

22
Q

{{toArray}}

A

Convert from Array to collection

Opposite of {{toCollection}}

23
Q

{{omit}}

A

gives us a collection except one thing, so give us this data, but without XYZ

24
Q

{{pick}}

A

Pick certain items within a collection