MCPcopy
hub / github.com/angular-ui/ui-router / getOptionValuesKeys

Function getOptionValuesKeys

test/angular/1.7/angular.js:32339–32354  ·  view source on GitHub ↗
(optionValues)

Source from the content-addressed store, hash-verified

32337 }
32338
32339 function getOptionValuesKeys(optionValues) {
32340 var optionValuesKeys;
32341
32342 if (!keyName && isArrayLike(optionValues)) {
32343 optionValuesKeys = optionValues;
32344 } else {
32345 // if object, extract keys, in enumeration order, unsorted
32346 optionValuesKeys = [];
32347 for (var itemKey in optionValues) {
32348 if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {
32349 optionValuesKeys.push(itemKey);
32350 }
32351 }
32352 }
32353 return optionValuesKeys;
32354 }
32355
32356 return {
32357 trackBy: trackBy,

Callers 1

parseOptionsExpressionFunction · 0.70

Calls 1

isArrayLikeFunction · 0.70

Tested by

no test coverage detected