Home
last modified time | relevance | path

Searched refs:isArray (Results 1 – 25 of 705) sorted by relevance

12345678910>>...29

/third_party/jerryscript/tests/jerry/es2015/
Darray-isarray.js15 assert(Array.isArray([]) === true);
16 assert(Array.isArray([1]) === true);
17 assert(Array.isArray(new Array()) === true);
18 assert(Array.isArray(new Array('a', 'b', 'c', 'd')) === true);
19 assert(Array.isArray(new Array(3)) === true);
20 assert(Array.isArray(Array.prototype) === true);
21 assert(Array.isArray(new Proxy([], {})) === true);
23 assert(Array.isArray() === false);
24 assert(Array.isArray({}) === false);
25 assert(Array.isArray(null) === false);
[all …]
/third_party/typescript/tests/baselines/reference/
DisArray.symbols1 === tests/cases/compiler/isArray.ts ===
3 >maybeArray : Symbol(maybeArray, Decl(isArray.ts, 0, 3))
6 if (Array.isArray(maybeArray)) {
7 >Array.isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
9 >isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
10 >maybeArray : Symbol(maybeArray, Decl(isArray.ts, 0, 3))
14 >maybeArray : Symbol(maybeArray, Decl(isArray.ts, 0, 3))
20 >maybeArray : Symbol(maybeArray, Decl(isArray.ts, 0, 3))
DmalformedTags.symbols7 var isArray = Array.isArray;
8 >isArray : Symbol(isArray, Decl(myFile02.js, 5, 3))
9 >Array.isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
11 >isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
DspreadBooleanRespectsFreshness.types18 foo1 = [...Array.isArray(foo2) ? foo2 : [foo2]];
19 >foo1 = [...Array.isArray(foo2) ? foo2 : [foo2]] : FooBase[]
21 >[...Array.isArray(foo2) ? foo2 : [foo2]] : FooBase[]
22 >...Array.isArray(foo2) ? foo2 : [foo2] : FooBase
23 >Array.isArray(foo2) ? foo2 : [foo2] : FooArray
24 >Array.isArray(foo2) : boolean
25 >Array.isArray : (arg: any) => arg is any[]
27 >isArray : (arg: any) => arg is any[]
DmalformedTags.types7 var isArray = Array.isArray;
8 >isArray : Function
9 >Array.isArray : (arg: any) => arg is any[]
11 >isArray : (arg: any) => arg is any[]
DliteralFreshnessPropagationOnNarrowing.types65 let a4: ElementOrArray = Array.isArray(elOrA) ? elOrA : [elOrA];
67 >Array.isArray(elOrA) ? elOrA : [elOrA] : (string | false)[]
68 >Array.isArray(elOrA) : boolean
69 >Array.isArray : (arg: any) => arg is any[]
71 >isArray : (arg: any) => arg is any[]
80 let a5: ElementOrArray = [...Array.isArray(elOrA) ? elOrA : [elOrA]];
82 >[...Array.isArray(elOrA) ? elOrA : [elOrA]] : (string | false)[]
83 >...Array.isArray(elOrA) ? elOrA : [elOrA] : string | false
84 >Array.isArray(elOrA) ? elOrA : [elOrA] : (string | false)[]
85 >Array.isArray(elOrA) : boolean
[all …]
DgenericRecursiveImplicitConstructorErrors3.types62 if (this.isArray()) {
63 >this.isArray() : any
64 >this.isArray : any
66 >isArray : any
70 >this._elementType ? (this._elementType.isArray() || this._elementType.isNamedTypeSy…
75 (this._elementType.isArray() || this._elementType.isNamedTypeSymbol() ?
76 >(this._elementType.isArray() || this._elementType.isNamedTypeSymbol() ? this._eleme…
77 >this._elementType.isArray() || this._elementType.isNamedTypeSymbol() ? this._elemen…
78 >this._elementType.isArray() || this._elementType.isNamedTypeSymbol() : any
79 >this._elementType.isArray() : any
[all …]
DisArray.types1 === tests/cases/compiler/isArray.ts ===
6 if (Array.isArray(maybeArray)) {
7 >Array.isArray(maybeArray) : boolean
8 >Array.isArray : (arg: any) => arg is any[]
10 >isArray : (arg: any) => arg is any[]
DmalformedTags.js7 var isArray = Array.isArray; variable
16 var isArray = Array.isArray;
DnoIterationTypeErrorsInCFA.types10 if (!Array.isArray(dds)) {
11 >!Array.isArray(dds) : boolean
12 >Array.isArray(dds) : boolean
13 >Array.isArray : (arg: any) => arg is any[]
15 >isArray : (arg: any) => arg is any[]
DspreadBooleanRespectsFreshness.symbols22 foo1 = [...Array.isArray(foo2) ? foo2 : [foo2]];
24 >Array.isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
26 >isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
DliteralFreshnessPropagationOnNarrowing.symbols61 let a4: ElementOrArray = Array.isArray(elOrA) ? elOrA : [elOrA];
64 >Array.isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
66 >isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
74 let a5: ElementOrArray = [...Array.isArray(elOrA) ? elOrA : [elOrA]];
77 >Array.isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
79 >isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
DnoIterationTypeErrorsInCFA.symbols14 if (!Array.isArray(dds)) {
15 >Array.isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
17 >isArray : Symbol(ArrayConstructor.isArray, Decl(lib.es5.d.ts, --, --))
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockTests.cpp538 for (int isArray = 0; isArray < 2; isArray++) in init() local
543 if (bufferModes[modeNdx].mode == UniformBlockCase::BUFFERMODE_SINGLE && isArray == 0) in init()
546 if (isArray) in init()
549 …ertex"), "", baseFlags|DECLARE_VERTEX, bufferModes[modeNdx].mode, isArray ? 3 : 0, LOAD_FUL… in init()
550 …ent"), "", baseFlags|DECLARE_FRAGMENT, bufferModes[modeNdx].mode, isArray ? 3 : 0, LOAD_FUL… in init()
551 …", baseFlags|DECLARE_VERTEX|DECLARE_FRAGMENT, bufferModes[modeNdx].mode, isArray ? 3 : 0, LOAD_FUL… in init()
552 …p_access"), "", baseFlags|DECLARE_VERTEX, bufferModes[modeNdx].mode, isArray ? 3 : 0, LOAD_MAT… in init()
553 …access"), "", baseFlags|DECLARE_FRAGMENT, bufferModes[modeNdx].mode, isArray ? 3 : 0, LOAD_MAT… in init()
554 …", baseFlags|DECLARE_VERTEX|DECLARE_FRAGMENT, bufferModes[modeNdx].mode, isArray ? 3 : 0, LOAD_MAT… in init()
650 for (int isArray = 0; isArray < 2; isArray++) in init() local
[all …]
/third_party/node/deps/npm/node_modules/isarray/
Dtest.js1 var isArray = require('./'); variable
5 t.ok(isArray([]));
6 t.notOk(isArray({}));
7 t.notOk(isArray(null));
8 t.notOk(isArray(false));
12 t.notOk(isArray(obj));
16 t.ok(isArray(arr));
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fUniformBlockTests.cpp530 for (int isArray = 0; isArray < 2; isArray++) in init() local
535 if (bufferModes[modeNdx].mode == UniformBlockCase::BUFFERMODE_SINGLE && isArray == 0) in init()
538 if (isArray) in init()
541 …"_vertex").c_str(), "", baseFlags|DECLARE_VERTEX, bufferModes[modeNdx].mode, isArray ? 3 : 0)); in init()
542 …agment").c_str(), "", baseFlags|DECLARE_FRAGMENT, bufferModes[modeNdx].mode, isArray ? 3 : 0)); in init()
545 …tr(), "", baseFlags|DECLARE_VERTEX|DECLARE_FRAGMENT, bufferModes[modeNdx].mode, isArray ? 3 : 0)); in init()
563 for (int isArray = 0; isArray < 2; isArray++) in init() local
568 if (bufferModes[modeNdx].mode == UniformBlockCase::BUFFERMODE_SINGLE && isArray == 0) in init()
571 if (isArray) in init()
574 …"_vertex").c_str(), "", baseFlags|DECLARE_VERTEX, bufferModes[modeNdx].mode, isArray ? 3 : 0)); in init()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutTests.cpp510 for (int isArray = 0; isArray < 2; isArray++) in init() local
512 const std::string baseName = isArray ? "instance_array" : "std"; in init()
513 const int numInstances = isArray ? 2 : 0; in init()
572 for (int isArray = 0; isArray < 2; isArray++) in init() local
574 const std::string baseName = isArray ? "instance_array" : "std"; in init()
575 const int numInstances = isArray ? 3 : 0; in init()
587 for (int isArray = 0; isArray < 2; isArray++) in init() local
589 const std::string baseName = isArray ? "instance_array" : "std"; in init()
590 const int numInstances = isArray ? 2 : 0; in init()
602 for (int isArray = 0; isArray < 2; isArray++) in init() local
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fSSBOLayoutTests.cpp1024 for (int isArray = 0; isArray < 2; isArray++) in init() local
1029 if (bufferModes[modeNdx].mode == SSBOLayoutCase::BUFFERMODE_SINGLE && isArray == 0) in init()
1032 if (isArray) in init()
1035 …tructCase(m_context, caseName.c_str(), "", caseFlags, bufferModes[modeNdx].mode, isArray ? 3 : 0)); in init()
1053 for (int isArray = 0; isArray < 2; isArray++) in init() local
1058 if (bufferModes[modeNdx].mode == SSBOLayoutCase::BUFFERMODE_SINGLE && isArray == 0) in init()
1061 if (isArray) in init()
1064 …ArrayCase(m_context, baseName.c_str(), "", baseFlags, bufferModes[modeNdx].mode, isArray ? 3 : 0)); in init()
1082 for (int isArray = 0; isArray < 2; isArray++) in init() local
1087 if (bufferModes[modeNdx].mode == SSBOLayoutCase::BUFFERMODE_SINGLE && isArray == 0) in init()
[all …]
/third_party/node/test/parallel/
Dtest-util.js31 assert.strictEqual(util.isArray([]), true);
32 assert.strictEqual(util.isArray(Array()), true);
33 assert.strictEqual(util.isArray(new Array()), true);
34 assert.strictEqual(util.isArray(new Array(5)), true);
35 assert.strictEqual(util.isArray(new Array('with', 'some', 'entries')), true);
36 assert.strictEqual(util.isArray(context('Array')()), true);
37 assert.strictEqual(util.isArray({}), false);
38 assert.strictEqual(util.isArray({ push: function() {} }), false);
39 assert.strictEqual(util.isArray(/regexp/), false);
40 assert.strictEqual(util.isArray(new Error()), false);
[all …]
/third_party/node/deps/npm/node_modules/extend/
Dindex.js8 var isArray = function isArray(arr) { function
9 if (typeof Array.isArray === 'function') {
10 return Array.isArray(arr);
95 if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
98 clone = src && isArray(src) ? src : [];
/third_party/node/deps/npm/node_modules/nopt/lib/
Dnopt.js61 , isArray = Array.isArray(val)
63 if (!isArray) val = [val]
66 if (!Array.isArray(type)) type = [type]
122 else if (isArray) {
123 debug(isArray, data[k], val)
189 if (Array.isArray(type)) {
292 var isTypeArray = Array.isArray(argType)
298 var isArray = argType === Array ||
303 if (!Array.isArray(data[arg]))
305 isArray = true
[all …]
/third_party/node/deps/npm/node_modules/core-util-is/lib/
Dutil.js25 function isArray(arg) { function
26 if (Array.isArray) {
27 return Array.isArray(arg);
31 exports.isArray = isArray;
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutTests.cpp1418 for (int isArray = 0; isArray < 2; isArray++) in init() local
1423 if (bufferModes[modeNdx].mode == SSBOLayoutCase::BUFFERMODE_SINGLE && isArray == 0) in init()
1426 if (isArray) in init()
1431 …st + storeType.first).c_str(), "", caseFlags, bufferModes[modeNdx].mode, isArray ? 3 : 0, loadType… in init()
1450 for (int isArray = 0; isArray < 2; isArray++) in init() local
1455 if (bufferModes[modeNdx].mode == SSBOLayoutCase::BUFFERMODE_SINGLE && isArray == 0) in init()
1458 if (isArray) in init()
1463 …st + storeType.first).c_str(), "", baseFlags, bufferModes[modeNdx].mode, isArray ? 3 : 0, loadType… in init()
1482 for (int isArray = 0; isArray < 2; isArray++) in init() local
1487 if (bufferModes[modeNdx].mode == SSBOLayoutCase::BUFFERMODE_SINGLE && isArray == 0) in init()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcUniformBlockTests.cpp1015 for (int isArray = 0; isArray < 2; isArray++) in init() local
1021 if (bufferModes[modeNdx].mode == UniformBlockCase::BUFFERMODE_SINGLE && isArray == 0) in init()
1024 if (isArray) in init()
1028 … m_context, name.c_str(), "", m_glslVersion, flags, bufferModes[modeNdx].mode, isArray ? 3 : 0)); in init()
1044 for (int isArray = 0; isArray < 2; isArray++) in init() local
1050 if (bufferModes[modeNdx].mode == UniformBlockCase::BUFFERMODE_SINGLE && isArray == 0) in init()
1053 if (isArray) in init()
1057 … m_context, name.c_str(), "", m_glslVersion, flags, bufferModes[modeNdx].mode, isArray ? 3 : 0)); in init()
1073 for (int isArray = 0; isArray < 2; isArray++) in init() local
1079 if (bufferModes[modeNdx].mode == UniformBlockCase::BUFFERMODE_SINGLE && isArray == 0) in init()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DUniform.cpp65 ASSERT(!isArray() || !isStruct()); in LinkedUniform()
75 ASSERT(!isArray() || !isStruct()); in LinkedUniform()
129 InterfaceBlock::InterfaceBlock() : isArray(false), arrayElement(0) {} in InterfaceBlock()
136 : name(nameIn), mappedName(mappedNameIn), isArray(isArrayIn), arrayElement(arrayElementIn) in InterfaceBlock()
145 if (isArray) in nameWithArrayIndex()
157 if (isArray) in mappedNameWithArrayIndex()

12345678910>>...29