MCPcopy Create free account
hub / github.com/expo/expo / isArray

Method isArray

packages/expo-modules-core/android/src/main/cpp/JavaScriptValue.cpp:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119bool JavaScriptValue::isArray() {
120 if (jsValue->isObject()) {
121 auto runtime = runtimeHolder.lock();
122 assert((runtime != nullptr) && "JS Runtime was used after deallocation");
123 auto &rawRuntime = runtime->get();
124
125 return jsValue->asObject(rawRuntime).isArray(rawRuntime);
126 }
127
128 return false;
129}
130
131bool JavaScriptValue::isObject() {
132 return jsValue->isObject();

Callers 15

arrayizeFunction · 0.45
format_unchangedMethod · 0.45
runAsyncMethod · 0.45
podspecPathMethod · 0.45
podspecPathsMethod · 0.45
addStepsMethod · 0.45
mainFunction · 0.45
fetchEASRunsFunction · 0.45
executeCommandFunction · 0.45

Calls 5

getMethod · 0.65
assertFunction · 0.50
isObjectMethod · 0.45
lockMethod · 0.45
asObjectMethod · 0.45

Tested by 15

serializeToWithGraphFunction · 0.36
flattenFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
isContentArrayFunction · 0.36