MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / getOptionValuesKeys

Function getOptionValuesKeys

lib/test/angular/1.5.0/angular.js:27361–27376  ·  view source on GitHub ↗
(optionValues)

Source from the content-addressed store, hash-verified

27359 }
27360
27361 function getOptionValuesKeys(optionValues) {
27362 var optionValuesKeys;
27363
27364 if (!keyName && isArrayLike(optionValues)) {
27365 optionValuesKeys = optionValues;
27366 } else {
27367 // if object, extract keys, in enumeration order, unsorted
27368 optionValuesKeys = [];
27369 for (var itemKey in optionValues) {
27370 if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {
27371 optionValuesKeys.push(itemKey);
27372 }
27373 }
27374 }
27375 return optionValuesKeys;
27376 }
27377
27378 return {
27379 trackBy: trackBy,

Callers 1

parseOptionsExpressionFunction · 0.70

Calls 1

isArrayLikeFunction · 0.70

Tested by

no test coverage detected