MCPcopy Create free account
hub / github.com/dop251/goja / checkStdArrayIter

Method checkStdArrayIter

builtin_array.go:1457–1465  ·  view source on GitHub ↗
(v Value)

Source from the content-addressed store, hash-verified

1455}
1456
1457func (r *Runtime) checkStdArrayIter(v Value) *arrayObject {
1458 if arr := r.checkStdArray(v); arr != nil &&
1459 arr.getSym(SymIterator, nil) == r.getArrayValues() {
1460
1461 return arr
1462 }
1463
1464 return nil
1465}
1466
1467func (r *Runtime) array_from(call FunctionCall) Value {
1468 var mapFn func(FunctionCall) Value

Callers 3

array_fromMethod · 0.95
builtin_newSetMethod · 0.95
builtin_newWeakSetMethod · 0.95

Calls 3

checkStdArrayMethod · 0.95
getArrayValuesMethod · 0.95
getSymMethod · 0.65

Tested by

no test coverage detected