MCPcopy Create free account
hub / github.com/nodejs/node / areSame

Function areSame

deps/v8/test/mjsunit/es6/array-of.js:72–78  ·  view source on GitHub ↗
(object, array)

Source from the content-addressed store, hash-verified

70assertEquals(areSame(actual, expected), true);
71
72function areSame(object, array) {
73 var result = object.length == array.length;
74 for (var i = 0; i < object.length; i++) {
75 result = result && object[i] == array[i];
76 }
77 return result;
78}
79
80
81// Array.of does not trigger prototype setters.

Callers 1

array-of.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected