MCPcopy Create free account
hub / github.com/microsoft/SandDance / checkUniformArray

Function checkUniformArray

docs/tests/v2/es6/js/sanddance.js:12276–12291  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

12274}
12275
12276function checkUniformArray(value) {
12277 // Check that every element in array is a number, and at least 1 element
12278 if (value.length === 0) {
12279 return false;
12280 }
12281
12282 var checkLength = Math.min(value.length, 16);
12283
12284 for (var i = 0; i < checkLength; ++i) {
12285 if (!Number.isFinite(value[i])) {
12286 return false;
12287 }
12288 }
12289
12290 return true;
12291}
12292/**
12293 * Given two values of a uniform, returns `true` if they are equal
12294 */

Callers 1

checkUniformValueFunction · 0.70

Calls 1

minMethod · 0.45

Tested by

no test coverage detected