MCPcopy Create free account
hub / github.com/DanWahlin/CustomerManagerStandard / __toArray

Function __toArray

CustomerManager/Scripts/breeze.debug.js:267–275  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

265 // array functions
266
267 function __toArray(item) {
268 if (item == null) {
269 return [];
270 } else if (Array.isArray(item)) {
271 return item;
272 } else {
273 return [item];
274 }
275 }
276
277 // a version of Array.map that doesn't require an array, i.e. works on arrays and scalars.
278 function __map(items, fn, includeNull) {

Callers 9

parseFunction · 0.85
parseCsdlComplexTypeFunction · 0.85
parseCsdlNavPropertyFunction · 0.85
isEdmxEnumTypeFunction · 0.85
updateClientServerNamesFunction · 0.85
getEntityGroupsFunction · 0.85
validateEntityStatesFunction · 0.85
executeQueryCoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected