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

Function getOptionValuesKeys

test/angular/1.5/angular.js:29420–29435  ·  view source on GitHub ↗
(optionValues)

Source from the content-addressed store, hash-verified

29418 }
29419
29420 function getOptionValuesKeys(optionValues) {
29421 var optionValuesKeys;
29422
29423 if (!keyName && isArrayLike(optionValues)) {
29424 optionValuesKeys = optionValues;
29425 } else {
29426 // if object, extract keys, in enumeration order, unsorted
29427 optionValuesKeys = [];
29428 for (var itemKey in optionValues) {
29429 if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {
29430 optionValuesKeys.push(itemKey);
29431 }
29432 }
29433 }
29434 return optionValuesKeys;
29435 }
29436
29437 return {
29438 trackBy: trackBy,

Callers 1

parseOptionsExpressionFunction · 0.70

Calls 1

isArrayLikeFunction · 0.70

Tested by

no test coverage detected