Lodash
About
This class provides most of the functionality in js.component. Don’t instantiate this class directly — it is meant to be a singleton accessed through the _
or lodash
method.
Most of the actual implementation of this class is split up into singleton instances of several other classes, which this class delegates to through its own functions and properties. This is an implementation detail you need not worry about; logically all of the functions listed below are part of this class.
API
Lodash
class functions are available via _.<function>
or lodash.<function>
and can broadly be separated into the following categories:
Collections
.$at()
.at()
.difference()
.distinct()
.every()
.filter()
.find()
.findAll()
.findIndex()
.findIndexes()
.findIndices()
.findLastIndex()
.flatten()
.flattenDeep()
.indexes()
.indexOf()
.indices()
.intersection()
.lastIndexOf()
.map()
.reduce()
.some()
.sort()
.splice()
.zip()
Debugging
.alert()
.inspect()
.openMethod()
.resolveMethodRef()
Error handling
.catch()
.caught
.clearLastUncaughtError()
.endTry()
.error()
.errors
.lastError
.lastUncaughtError
.makeErrorConfig()
.maxErrorStackDepth
.setHostOnErrCall
.setUncaughtErrorHandler
.throw()
.try()
Global config
.clearConfig()
.config
.getConfigValue()
.loadConfig()
Language
.bind()
.bindRight()
.bool()
.equal()
.falsey()
.getCallStack()
.instanceof() / .instanceOf()
.isArrayPointer()
.isCallable()
.isCyclic()
.isNumber()
.isNumericType()
.max()
.min()
.respondsTo()
.sequence()
.strictEqual()
.truthy()
.typeName()
.valueIs()
Objects
.assign()
.equalObjects()
.strictEqualObjects()
Paths
.basename()
.determinePathType()
.dirname()
.expandUser()
.extname()
.isAbsolute()
.joinPaths()
.nativePath()
Regular expressions
.regexEscape()
.regexMatch()
.regexReplace()
.regexSplit()
Strings
.capitalize()
.convertLineBreaks()
.decodeURIComponent()
.description()
.encodeURIComponent()
.format()
.formatBytes()
.hexEncode()
.hexToDecimal()
.httpEncodeUnicode()
.httpQuote()
.json()
.lastPosition()
.match()
.padEnd()
.padStart()
.parseBytes()
.parseJSON()
.prettify()
.stringify()
.toString()
.trim()
.trimEnd()
.trimStart()
Timing
.clearInterval()
.clearTimeout()
.performance()
.setInterval()
.setTimeout()
Utility
.diffMilliseconds()
.exec()
.getClassesInFolder()
.popCharacterSet()
.printStackTrace()
.pushCharacterSet()
.randomBetween()
.valueForKeyPath()
.version