Leverege Platform

Leverege Platform

  • Overview
  • JSDocs
  • REST API
  • Help

›JSDoc

JSDoc

  • Home
  • API Server
  • API Attributes
  • Api Patch Ops
  • API Redux
  • Array Util
  • Base62 Util
  • Cache
  • Cluster Manager
  • Data Store
  • Exit
  • Factory
  • Limit
  • Lock
  • Message Queue
  • Messages
  • Path
  • Permissions
  • Reasoner
  • String Util
  • UI Active Theme
  • UI Elements
  • UI Linear View Elements
  • UI Mapbox Elements
  • Validator

Array Util

Functions

index returns the first index of the array where the key of the element equals the value(arr, key, value, from)
find returns the first element of the array where the key of the element equals the value(arr, key, value, from)
replace returns the first index of the array where the key of the element equals the value after replacing it with elem(arr, key, value, elem, from)
remove returns the first index of the array where the key of the element equals the value after removing it(arr, key, value, from)
removeAll returns an array of all instances where the value was found after removing them from the original array(arr, key, value, from)
findRemove returns the first instance where the value was found after removing them from the original array(arr, key, value, from)
diff an object with added removed and same between the 2 arrays(sArr, nArr)

index returns the first index of the array where the key of the element equals the value(arr, key, value, from)

Kind: global function

ParamTypeDescription
arrarrayarray of objects
keystringthe key of each object that will be compared
valueanythe value being looked for
fromnumberthe starting search index

find returns the first element of the array where the key of the element equals the value(arr, key, value, from)

Kind: global function

ParamTypeDescription
arrarrayarray of objects
keystringthe key of each object that will be compared
valueanythe value being looked for
fromnumberthe starting search index

replace returns the first index of the array where the key of the element equals the value after replacing it with elem(arr, key, value, elem, from)

Kind: global function

ParamTypeDescription
arrarrayarray of objects
keystringthe key of each object that will be compared
valueanythe value being looked for and replaced
elemanythe value that will replace the value
fromnumberthe starting search index

remove returns the first index of the array where the key of the element equals the value after removing it(arr, key, value, from)

Kind: global function

ParamTypeDescription
arrarrayarray of objects
keystringthe key of each object that will be compared
valueanythe value being looked for and removed
fromnumberthe starting search index

removeAll returns an array of all instances where the value was found after removing them from the original array(arr, key, value, from)

Kind: global function

ParamTypeDescription
arrarrayarray of objects
keystringthe key of each object that will be compared
valueanythe value being looked for and removed
fromnumberthe starting search index

findRemove returns the first instance where the value was found after removing them from the original array(arr, key, value, from)

Kind: global function

ParamTypeDescription
arrarrayarray of objects
keystringthe key of each object that will be compared
valueanythe value being looked for and removed
fromnumberthe starting search index

diff an object with added removed and same between the 2 arrays(sArr, nArr)

Kind: global function

ParamTypeDescription
sArrarrayif in sArr, but not in nArr will be in removed
nArrarrayif in nArr, but not in sArr, will be in added
← API ReduxBase62 Util →
  • Functions
  • index returns the first index of the array where the key of the element equals the value(arr, key, value, from)
  • find returns the first element of the array where the key of the element equals the value(arr, key, value, from)
  • replace returns the first index of the array where the key of the element equals the value after replacing it with elem(arr, key, value, elem, from)
  • remove returns the first index of the array where the key of the element equals the value after removing it(arr, key, value, from)
  • removeAll returns an array of all instances where the value was found after removing them from the original array(arr, key, value, from)
  • findRemove returns the first instance where the value was found after removing them from the original array(arr, key, value, from)
  • diff an object with added removed and same between the 2 arrays(sArr, nArr)
Leverege Platform
Docs
Overview
Connect
FacebookLinkedInTwitter
Facebook Open Source