jaaJSU — Examples

⇠ Go back to GitHub repository

Content

$array

Notes

$array

Examples

.arrayIndex

1

View with highliting (link to source of this file)

.each

{"item":"A","last":false,"key":0}

{"item":"B","last":true,"key":1}

View with highliting (link to source of this file)

.eachDynamic

{"item":"A","key":0}

{"item":"B","key":1}

{"item":"C","key":2}

View with highliting (link to source of this file)

.getLast

"1"

View with highliting (link to source of this file)

.partition

["A",["B","C","D"]]

[["A","B","C"],"D"]

[["A","B"],["C","D"]]

[["A","B"],["C","D"]]

[["B"],["A","C","D"]]

View with highliting (link to source of this file)

.removeItem

["A","C","D"]

["A","B","C","D","B"]

View with highliting (link to source of this file)

.sortRandom

["A","B","D","C"]

View with highliting (link to source of this file)

$function

Notes

$function

Examples

.arguments

"No changes: "

"A"

"B"

"C"

"D"

"Filter+reorder: "

"C"

"B"

View with highliting (link to source of this file)

.bindRight

"B"

"A"

"`This` example"

View with highliting (link to source of this file)

.branches

true

false

View with highliting (link to source of this file)

.call

"A"

"B"

View with highliting (link to source of this file)

.conditionalCall

"A"

"False"

View with highliting (link to source of this file)

.constant

["A",10,{"a":"A"}]

View with highliting (link to source of this file)

.each

"a: "

["A",10,{"a":"A"}]

"b: "

["A",10,{"a":"A"}]

View with highliting (link to source of this file)

.exception

"Exception: mixed value possible"

View with highliting (link to source of this file)

.exceptionError

"e instanceof Error: true"

"Exception Error: mixed value possible"

View with highliting (link to source of this file)

.gather

["A","B","C","D"]

["A","Z","D"]

View with highliting (link to source of this file)

.identity

["A",10,{"a":"A"}]

View with highliting (link to source of this file)

.partial

"T"

["A","B","C","D"]

"VS regular `bind`"

"null"

["A","B","C","D"]

View with highliting (link to source of this file)

.partialRight

"T"

["C","D","A","B"]

"VS regular `bind`"

"null"

["A","B","C","D"]

View with highliting (link to source of this file)

.schedule

"Defaults to `setTimeout` with 150ms delay"

View with highliting (link to source of this file)

.self

true

"T"

View with highliting (link to source of this file)

.spread

"A"

"B"

"C"

"D"

" -- -- --"

"A"

"Z"

"D"

View with highliting (link to source of this file)

.sequention

50

50

-5

View with highliting (link to source of this file)

.sequentionTry

.sequentionCatch

[2,3,4,5,6,7,8,9,10,0,1,2,3]

View with highliting (link to source of this file)

.sideEffect

5

6

View with highliting (link to source of this file)