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

Function getOptionValuesKeys

test/angular/1.4/angular.js:26899–26914  ·  view source on GitHub ↗
(optionValues)

Source from the content-addressed store, hash-verified

26897 }
26898
26899 function getOptionValuesKeys(optionValues) {
26900 var optionValuesKeys;
26901
26902 if (!keyName && isArrayLike(optionValues)) {
26903 optionValuesKeys = optionValues;
26904 } else {
26905 // if object, extract keys, in enumeration order, unsorted
26906 optionValuesKeys = [];
26907 for (var itemKey in optionValues) {
26908 if (optionValues.hasOwnProperty(itemKey) && itemKey.charAt(0) !== '$') {
26909 optionValuesKeys.push(itemKey);
26910 }
26911 }
26912 }
26913 return optionValuesKeys;
26914 }
26915
26916 return {
26917 trackBy: trackBy,

Callers 1

parseOptionsExpressionFunction · 0.70

Calls 1

isArrayLikeFunction · 0.70

Tested by

no test coverage detected