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

Function getOptionValuesKeys

test/angular/1.6/angular.js:31141–31156  ·  view source on GitHub ↗
(optionValues)

Source from the content-addressed store, hash-verified

31139 }
31140
31141 function getOptionValuesKeys(optionValues) {
31142 var optionValuesKeys;
31143
31144 if (!keyName && isArrayLike(optionValues)) {
31145 optionValuesKeys = optionValues;
31146 } else {
31147 // if object, extract keys, in enumeration order, unsorted
31148 optionValuesKeys = [];
31149 for (var itemKey in optionValues) {
31150 if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {
31151 optionValuesKeys.push(itemKey);
31152 }
31153 }
31154 }
31155 return optionValuesKeys;
31156 }
31157
31158 return {
31159 trackBy: trackBy,

Callers 1

parseOptionsExpressionFunction · 0.70

Calls 1

isArrayLikeFunction · 0.70

Tested by

no test coverage detected