code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
function cloneDeep(value, callback, thisArg) { return baseClone(value, true, typeof callback == 'function' && baseCreateCallback(callback, thisArg, 1)); }
Creates a deep clone of `value`. If a callback is provided it will be executed to produce the cloned values. If the callback returns `undefined` cloning will be handled by the method instead. The callback is bound to `thisArg` and invoked with one argument; (value). Note: This method is loosely based on the structured...
cloneDeep
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function create(prototype, properties) { var result = baseCreate(prototype); return properties ? assign(result, properties) : result; }
Creates an object that inherits from the given `prototype` object. If a `properties` object is provided its own enumerable properties are assigned to the created object. @static @memberOf _ @category Objects @param {Object} prototype The object to inherit from. @param {Object} [properties] The properties to assign to ...
create
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
defaults = function(object, source, guard) { var index, iterable = object, result = iterable; if (!iterable) return result; var args = arguments, argsIndex = 0, argsLength = typeof guard == 'number' ? 2 : args.length; while (++argsIndex < argsLength) { iterable = args...
Assigns own enumerable properties of source object(s) to the destination object for all destination properties that resolve to `undefined`. Once a property is set, additional defaults of the same property will be ignored. @static @memberOf _ @type Function @category Objects @param {Object} object The destination objec...
defaults
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function findKey(object, callback, thisArg) { var result; callback = lodash.createCallback(callback, thisArg, 3); forOwn(object, function(value, key, object) { if (callback(value, key, object)) { result = key; return false; } }); return result; }
This method is like `_.findIndex` except that it returns the key of the first element that passes the callback check, instead of the element itself. If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element. If an object is provided for `cal...
findKey
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function findLastKey(object, callback, thisArg) { var result; callback = lodash.createCallback(callback, thisArg, 3); forOwnRight(object, function(value, key, object) { if (callback(value, key, object)) { result = key; return false; } }); return result; ...
This method is like `_.findKey` except that it iterates over elements of a `collection` in the opposite order. If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element. If an object is provided for `callback` the created "_.where" style cal...
findLastKey
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
forIn = function(collection, callback, thisArg) { var index, iterable = collection, result = iterable; if (!iterable) return result; if (!objectTypes[typeof iterable]) return result; callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3); ...
Iterates over own and inherited enumerable properties of an object, executing the callback for each property. The callback is bound to `thisArg` and invoked with three arguments; (value, key, object). Callbacks may exit iteration early by explicitly returning `false`. @static @memberOf _ @type Function @category Objec...
forIn
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function forInRight(object, callback, thisArg) { var pairs = []; forIn(object, function(value, key) { pairs.push(key, value); }); var length = pairs.length; callback = baseCreateCallback(callback, thisArg, 3); while (length--) { if (callback(pairs[length--], pairs[l...
This method is like `_.forIn` except that it iterates over elements of a `collection` in the opposite order. @static @memberOf _ @category Objects @param {Object} object The object to iterate over. @param {Function} [callback=identity] The function called per iteration. @param {*} [thisArg] The `this` binding of `call...
forInRight
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
forOwn = function(collection, callback, thisArg) { var index, iterable = collection, result = iterable; if (!iterable) return result; if (!objectTypes[typeof iterable]) return result; callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3); ...
Iterates over own enumerable properties of an object, executing the callback for each property. The callback is bound to `thisArg` and invoked with three arguments; (value, key, object). Callbacks may exit iteration early by explicitly returning `false`. @static @memberOf _ @type Function @category Objects @param {Obj...
forOwn
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function forOwnRight(object, callback, thisArg) { var props = keys(object), length = props.length; callback = baseCreateCallback(callback, thisArg, 3); while (length--) { var key = props[length]; if (callback(object[key], key, object) === false) { break; } ...
This method is like `_.forOwn` except that it iterates over elements of a `collection` in the opposite order. @static @memberOf _ @category Objects @param {Object} object The object to iterate over. @param {Function} [callback=identity] The function called per iteration. @param {*} [thisArg] The `this` binding of `cal...
forOwnRight
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function functions(object) { var result = []; forIn(object, function(value, key) { if (isFunction(value)) { result.push(key); } }); return result.sort(); }
Creates a sorted array of property names of all enumerable properties, own and inherited, of `object` that have function values. @static @memberOf _ @alias methods @category Objects @param {Object} object The object to inspect. @returns {Array} Returns an array of property names that have function values. @example _....
functions
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function has(object, key) { return object ? hasOwnProperty.call(object, key) : false; }
Checks if the specified property name exists as a direct property of `object`, instead of an inherited property. @static @memberOf _ @category Objects @param {Object} object The object to inspect. @param {string} key The name of the property to check. @returns {boolean} Returns `true` if key is a direct property, else...
has
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function invert(object) { var index = -1, props = keys(object), length = props.length, result = {}; while (++index < length) { var key = props[index]; result[object[key]] = key; } return result; }
Creates an object composed of the inverted keys and values of the given object. @static @memberOf _ @category Objects @param {Object} object The object to invert. @returns {Object} Returns the created inverted object. @example _.invert({ 'first': 'fred', 'second': 'barney' }); // => { 'fred': 'first', 'barney': 'seco...
invert
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isBoolean(value) { return value === true || value === false || value && typeof value == 'object' && toString.call(value) == boolClass || false; }
Checks if `value` is a boolean value. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is a boolean value, else `false`. @example _.isBoolean(null); // => false
isBoolean
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isDate(value) { return value && typeof value == 'object' && toString.call(value) == dateClass || false; }
Checks if `value` is a date. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is a date, else `false`. @example _.isDate(new Date); // => true
isDate
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isElement(value) { return value && value.nodeType === 1 || false; }
Checks if `value` is a DOM element. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is a DOM element, else `false`. @example _.isElement(document.body); // => true
isElement
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isEmpty(value) { var result = true; if (!value) { return result; } var className = toString.call(value), length = value.length; if ((className == arrayClass || className == stringClass || className == argsClass ) || (className == objectClass && typeof ...
Checks if `value` is empty. Arrays, strings, or `arguments` objects with a length of `0` and objects with no own enumerable properties are considered "empty". @static @memberOf _ @category Objects @param {Array|Object|string} value The value to inspect. @returns {boolean} Returns `true` if the `value` is empty, else `...
isEmpty
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isEqual(a, b, callback, thisArg) { return baseIsEqual(a, b, typeof callback == 'function' && baseCreateCallback(callback, thisArg, 2)); }
Performs a deep comparison between two values to determine if they are equivalent to each other. If a callback is provided it will be executed to compare values. If the callback returns `undefined` comparisons will be handled by the method instead. The callback is bound to `thisArg` and invoked with two arguments; (a, ...
isEqual
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isFinite(value) { return nativeIsFinite(value) && !nativeIsNaN(parseFloat(value)); }
Checks if `value` is, or can be coerced to, a finite number. Note: This is not the same as native `isFinite` which will return true for booleans and empty strings. See http://es5.github.io/#x15.1.2.5. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `...
isFinite
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isFunction(value) { return typeof value == 'function'; }
Checks if `value` is a function. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is a function, else `false`. @example _.isFunction(_); // => true
isFunction
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isObject(value) { // check if the value is the ECMAScript language type of Object // http://es5.github.io/#x8 // and avoid a V8 bug // http://code.google.com/p/v8/issues/detail?id=2291 return !!(value && objectTypes[typeof value]); }
Checks if `value` is the language type of Object. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is an object, else `false`. @example _.isObject({}); // => tru...
isObject
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isNaN(value) { // `NaN` as a primitive is the only value that is not equal to itself // (perform the [[Class]] check first to avoid errors with some host objects in IE) return isNumber(value) && value != +value; }
Checks if `value` is `NaN`. Note: This is not the same as native `isNaN` which will return `true` for `undefined` and other non-numeric values. See http://es5.github.io/#x15.1.2.4. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is `NaN`, els...
isNaN
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isNull(value) { return value === null; }
Checks if `value` is `null`. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is `null`, else `false`. @example _.isNull(null); // => true _.isNull(undefined); // => false
isNull
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isNumber(value) { return typeof value == 'number' || value && typeof value == 'object' && toString.call(value) == numberClass || false; }
Checks if `value` is a number. Note: `NaN` is considered a number. See http://es5.github.io/#x8.5. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is a number, else `false`. @example _.isNumber(8.4 * 5); // => true
isNumber
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isRegExp(value) { return value && typeof value == 'object' && toString.call(value) == regexpClass || false; }
Checks if `value` is a regular expression. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is a regular expression, else `false`. @example _.isRegExp(/fred/); // => true
isRegExp
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isString(value) { return typeof value == 'string' || value && typeof value == 'object' && toString.call(value) == stringClass || false; }
Checks if `value` is a string. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is a string, else `false`. @example _.isString('fred'); // => true
isString
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function isUndefined(value) { return typeof value == 'undefined'; }
Checks if `value` is `undefined`. @static @memberOf _ @category Objects @param {*} value The value to check. @returns {boolean} Returns `true` if the `value` is `undefined`, else `false`. @example _.isUndefined(void 0); // => true
isUndefined
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function mapValues(object, callback, thisArg) { var result = {}; callback = lodash.createCallback(callback, thisArg, 3); forOwn(object, function(value, key, object) { result[key] = callback(value, key, object); }); return result; }
Creates an object with the same keys as `object` and values generated by running each own enumerable property of `object` through the callback. The callback is bound to `thisArg` and invoked with three arguments; (value, key, object). If a property name is provided for `callback` the created "_.pluck" style callback w...
mapValues
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function merge(object) { var args = arguments, length = 2; if (!isObject(object)) { return object; } // allows working with `_.reduce` and `_.reduceRight` without using // their `index` and `collection` arguments if (typeof args[2] != 'number') { length = a...
Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined` into the destination object. Subsequent sources will overwrite property assignments of previous sources. If a callback is provided it will be executed to produce the merged values of the destination and source proper...
merge
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function pairs(object) { var index = -1, props = keys(object), length = props.length, result = Array(length); while (++index < length) { var key = props[index]; result[index] = [key, object[key]]; } return result; }
Creates a two dimensional array of an object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`. @static @memberOf _ @category Objects @param {Object} object The object to inspect. @returns {Array} Returns new array of key-value pairs. @example _.pairs({ 'barney': 36, 'fred': 40 }); // => [['barney', 36], ['f...
pairs
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function pick(object, callback, thisArg) { var result = {}; if (typeof callback != 'function') { var index = -1, props = baseFlatten(arguments, true, false, 1), length = isObject(object) ? props.length : 0; while (++index < length) { var key = props[index];...
Creates a shallow clone of `object` composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names. If a callback is provided it will be executed for each property of `object` picking the properties the callback returns truey for. The callback is bound to `t...
pick
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function transform(object, callback, accumulator, thisArg) { var isArr = isArray(object); if (accumulator == null) { if (isArr) { accumulator = []; } else { var ctor = object && object.constructor, proto = ctor && ctor.prototype; accumulator = bas...
An alternative to `_.reduce` this method transforms `object` to a new `accumulator` object which is the result of running each of its own enumerable properties through a callback, with each callback execution potentially mutating the `accumulator` object. The callback is bound to `thisArg` and invoked with four argumen...
transform
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function values(object) { var index = -1, props = keys(object), length = props.length, result = Array(length); while (++index < length) { result[index] = object[props[index]]; } return result; }
Creates an array composed of the own enumerable property values of `object`. @static @memberOf _ @category Objects @param {Object} object The object to inspect. @returns {Array} Returns an array of property values. @example _.values({ 'one': 1, 'two': 2, 'three': 3 }); // => [1, 2, 3] (property order is not guarantee...
values
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function at(collection) { var args = arguments, index = -1, props = baseFlatten(args, true, false, 1), length = (args[2] && args[2][args[1]] === collection) ? 1 : props.length, result = Array(length); while(++index < length) { result[index] = collection[props...
Creates an array of elements from the specified indexes, or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes. @static @memberOf _ @category Collections @param {Array|Object|string} collection The collection to iterate over. @param {...(number|number[]|string|string[])...
at
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function contains(collection, target, fromIndex) { var index = -1, indexOf = getIndexOf(), length = collection ? collection.length : 0, result = false; fromIndex = (fromIndex < 0 ? nativeMax(0, length + fromIndex) : fromIndex) || 0; if (isArray(collection)) { res...
Checks if a given value is present in a collection using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection. @static @memberOf _ @alias include @category Collections @param {Array|Object|string} collection The collection to iterate over. @pa...
contains
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function every(collection, callback, thisArg) { var result = true; callback = lodash.createCallback(callback, thisArg, 3); var index = -1, length = collection ? collection.length : 0; if (typeof length == 'number') { while (++index < length) { if (!(result = !!callb...
Checks if the given callback returns truey value for **all** elements of a collection. The callback is bound to `thisArg` and invoked with three arguments; (value, index|key, collection). If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given elem...
every
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function filter(collection, callback, thisArg) { var result = []; callback = lodash.createCallback(callback, thisArg, 3); var index = -1, length = collection ? collection.length : 0; if (typeof length == 'number') { while (++index < length) { var value = collection[...
Iterates over elements of a collection, returning an array of all elements the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; (value, index|key, collection). If a property name is provided for `callback` the created "_.pluck" style callback will return the property val...
filter
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function find(collection, callback, thisArg) { callback = lodash.createCallback(callback, thisArg, 3); var index = -1, length = collection ? collection.length : 0; if (typeof length == 'number') { while (++index < length) { var value = collection[index]; if (cal...
Iterates over elements of a collection, returning the first element that the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; (value, index|key, collection). If a property name is provided for `callback` the created "_.pluck" style callback will return the property value...
find
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function findLast(collection, callback, thisArg) { var result; callback = lodash.createCallback(callback, thisArg, 3); forEachRight(collection, function(value, index, collection) { if (callback(value, index, collection)) { result = value; return false; } }); ...
This method is like `_.find` except that it iterates over elements of a `collection` from right to left. @static @memberOf _ @category Collections @param {Array|Object|string} collection The collection to iterate over. @param {Function|Object|string} [callback=identity] The function called per iteration. If a propert...
findLast
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function forEach(collection, callback, thisArg) { var index = -1, length = collection ? collection.length : 0; callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3); if (typeof length == 'number') { while (++index < length) { ...
Iterates over elements of a collection, executing the callback for each element. The callback is bound to `thisArg` and invoked with three arguments; (value, index|key, collection). Callbacks may exit iteration early by explicitly returning `false`. Note: As with other "Collections" methods, objects with a `length` pr...
forEach
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function forEachRight(collection, callback, thisArg) { var length = collection ? collection.length : 0; callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3); if (typeof length == 'number') { while (length--) { if (callback(collect...
This method is like `_.forEach` except that it iterates over elements of a `collection` from right to left. @static @memberOf _ @alias eachRight @category Collections @param {Array|Object|string} collection The collection to iterate over. @param {Function} [callback=identity] The function called per iteration. @param ...
forEachRight
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function invoke(collection, methodName) { var args = slice(arguments, 2), index = -1, isFunc = typeof methodName == 'function', length = collection ? collection.length : 0, result = Array(typeof length == 'number' ? length : 0); forEach(collection, function(value) { ...
Invokes the method named by `methodName` on each element in the `collection` returning an array of the results of each invoked method. Additional arguments will be provided to each invoked method. If `methodName` is a function it will be invoked for, and `this` bound to, each element in the `collection`. @static @memb...
invoke
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function map(collection, callback, thisArg) { var index = -1, length = collection ? collection.length : 0; callback = lodash.createCallback(callback, thisArg, 3); if (typeof length == 'number') { var result = Array(length); while (++index < length) { result[index] ...
Creates an array of values by running each element in the collection through the callback. The callback is bound to `thisArg` and invoked with three arguments; (value, index|key, collection). If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given ...
map
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function max(collection, callback, thisArg) { var computed = -Infinity, result = computed; // allows working with functions like `_.map` without using // their `index` argument as a callback if (typeof callback != 'function' && thisArg && thisArg[callback] === collection) { ca...
Retrieves the maximum value of a collection. If the collection is empty or falsey `-Infinity` is returned. If a callback is provided it will be executed for each value in the collection to generate the criterion by which the value is ranked. The callback is bound to `thisArg` and invoked with three arguments; (value, i...
max
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function min(collection, callback, thisArg) { var computed = Infinity, result = computed; // allows working with functions like `_.map` without using // their `index` argument as a callback if (typeof callback != 'function' && thisArg && thisArg[callback] === collection) { cal...
Retrieves the minimum value of a collection. If the collection is empty or falsey `Infinity` is returned. If a callback is provided it will be executed for each value in the collection to generate the criterion by which the value is ranked. The callback is bound to `thisArg` and invoked with three arguments; (value, in...
min
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function reduce(collection, callback, accumulator, thisArg) { if (!collection) return accumulator; var noaccum = arguments.length < 3; callback = lodash.createCallback(callback, thisArg, 4); var index = -1, length = collection.length; if (typeof length == 'number') { if...
Reduces a collection to a value which is the accumulated result of running each element in the collection through the callback, where each successive callback execution consumes the return value of the previous execution. If `accumulator` is not provided the first element of the collection will be used as the initial `...
reduce
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function reduceRight(collection, callback, accumulator, thisArg) { var noaccum = arguments.length < 3; callback = lodash.createCallback(callback, thisArg, 4); forEachRight(collection, function(value, index, collection) { accumulator = noaccum ? (noaccum = false, value) : ca...
This method is like `_.reduce` except that it iterates over elements of a `collection` from right to left. @static @memberOf _ @alias foldr @category Collections @param {Array|Object|string} collection The collection to iterate over. @param {Function} [callback=identity] The function called per iteration. @param {*} [...
reduceRight
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function reject(collection, callback, thisArg) { callback = lodash.createCallback(callback, thisArg, 3); return filter(collection, function(value, index, collection) { return !callback(value, index, collection); }); }
The opposite of `_.filter` this method returns the elements of a collection that the callback does **not** return truey for. If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element. If an object is provided for `callback` the created "_.wh...
reject
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function sample(collection, n, guard) { if (collection && typeof collection.length != 'number') { collection = values(collection); } if (n == null || guard) { return collection ? collection[baseRandom(0, collection.length - 1)] : undefined; } var result = shuffle(collection...
Retrieves a random element or `n` random elements from a collection. @static @memberOf _ @category Collections @param {Array|Object|string} collection The collection to sample. @param {number} [n] The number of elements to sample. @param- {Object} [guard] Allows working with functions like `_.map` without using their...
sample
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function shuffle(collection) { var index = -1, length = collection ? collection.length : 0, result = Array(typeof length == 'number' ? length : 0); forEach(collection, function(value) { var rand = baseRandom(0, ++index); result[index] = result[rand]; result[rand]...
Creates an array of shuffled values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle. @static @memberOf _ @category Collections @param {Array|Object|string} collection The collection to shuffle. @returns {Array} Returns a new shuffled collection. @example _.shuffle([...
shuffle
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function size(collection) { var length = collection ? collection.length : 0; return typeof length == 'number' ? length : keys(collection).length; }
Gets the size of the `collection` by returning `collection.length` for arrays and array-like objects or the number of own enumerable properties for objects. @static @memberOf _ @category Collections @param {Array|Object|string} collection The collection to inspect. @returns {number} Returns `collection.length` or numb...
size
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function some(collection, callback, thisArg) { var result; callback = lodash.createCallback(callback, thisArg, 3); var index = -1, length = collection ? collection.length : 0; if (typeof length == 'number') { while (++index < length) { if ((result = callback(collect...
Checks if the callback returns a truey value for **any** element of a collection. The function returns as soon as it finds a passing value and does not iterate over the entire collection. The callback is bound to `thisArg` and invoked with three arguments; (value, index|key, collection). If a property name is provided...
some
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function sortBy(collection, callback, thisArg) { var index = -1, isArr = isArray(callback), length = collection ? collection.length : 0, result = Array(typeof length == 'number' ? length : 0); if (!isArr) { callback = lodash.createCallback(callback, thisArg, 3); ...
Creates an array of elements, sorted in ascending order by the results of running each element in a collection through the callback. This method performs a stable sort, that is, it will preserve the original sort order of equal elements. The callback is bound to `thisArg` and invoked with three arguments; (value, index...
sortBy
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function toArray(collection) { if (collection && typeof collection.length == 'number') { return slice(collection); } return values(collection); }
Converts the `collection` to an array. @static @memberOf _ @category Collections @param {Array|Object|string} collection The collection to convert. @returns {Array} Returns the new converted array. @example (function() { return _.toArray(arguments).slice(1); })(1, 2, 3, 4); // => [2, 3, 4]
toArray
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function compact(array) { var index = -1, length = array ? array.length : 0, result = []; while (++index < length) { var value = array[index]; if (value) { result.push(value); } } return result; }
Creates an array with all falsey values removed. The values `false`, `null`, `0`, `""`, `undefined`, and `NaN` are all falsey. @static @memberOf _ @category Arrays @param {Array} array The array to compact. @returns {Array} Returns a new array of filtered values. @example _.compact([0, 1, false, 2, '', 3]); // => [1,...
compact
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function difference(array) { return baseDifference(array, baseFlatten(arguments, true, true, 1)); }
Creates an array excluding all values of the provided arrays using strict equality for comparisons, i.e. `===`. @static @memberOf _ @category Arrays @param {Array} array The array to process. @param {...Array} [values] The arrays of values to exclude. @returns {Array} Returns a new array of filtered values. @example ...
difference
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function findIndex(array, callback, thisArg) { var index = -1, length = array ? array.length : 0; callback = lodash.createCallback(callback, thisArg, 3); while (++index < length) { if (callback(array[index], index, array)) { return index; } } return -1;...
This method is like `_.find` except that it returns the index of the first element that passes the callback check, instead of the element itself. If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element. If an object is provided for `callba...
findIndex
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function findLastIndex(array, callback, thisArg) { var length = array ? array.length : 0; callback = lodash.createCallback(callback, thisArg, 3); while (length--) { if (callback(array[length], length, array)) { return length; } } return -1; }
This method is like `_.findIndex` except that it iterates over elements of a `collection` from right to left. If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element. If an object is provided for `callback` the created "_.where" style call...
findLastIndex
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function first(array, callback, thisArg) { var n = 0, length = array ? array.length : 0; if (typeof callback != 'number' && callback != null) { var index = -1; callback = lodash.createCallback(callback, thisArg, 3); while (++index < length && callback(array[index], index, ...
Gets the first element or first `n` elements of an array. If a callback is provided elements at the beginning of the array are returned as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; (value, index, array). If a property name is provided for `callback` the cr...
first
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function flatten(array, isShallow, callback, thisArg) { // juggle arguments if (typeof isShallow != 'boolean' && isShallow != null) { thisArg = callback; callback = (typeof isShallow != 'function' && thisArg && thisArg[isShallow] === array) ? null : isShallow; isShallow = false; ...
Flattens a nested array (the nesting can be to any depth). If `isShallow` is truey, the array will only be flattened a single level. If a callback is provided each element of the array is passed through the callback before flattening. The callback is bound to `thisArg` and invoked with three arguments; (value, index, a...
flatten
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function indexOf(array, value, fromIndex) { if (typeof fromIndex == 'number') { var length = array ? array.length : 0; fromIndex = (fromIndex < 0 ? nativeMax(0, length + fromIndex) : fromIndex || 0); } else if (fromIndex) { var index = sortedIndex(array, value); return array[...
Gets the index at which the first occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If the array is already sorted providing `true` for `fromIndex` will run a faster binary search. @static @memberOf _ @category Arrays @param {Array} array The array to search. @param {*} value The value ...
indexOf
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function initial(array, callback, thisArg) { var n = 0, length = array ? array.length : 0; if (typeof callback != 'number' && callback != null) { var index = length; callback = lodash.createCallback(callback, thisArg, 3); while (index-- && callback(array[index], index, arr...
Gets all but the last element or last `n` elements of an array. If a callback is provided elements at the end of the array are excluded from the result as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; (value, index, array). If a property name is provided for `...
initial
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function intersection() { var args = [], argsIndex = -1, argsLength = arguments.length, caches = getArray(), indexOf = getIndexOf(), trustIndexOf = indexOf === baseIndexOf, seen = getArray(); while (++argsIndex < argsLength) { var value = ...
Creates an array of unique values present in all provided arrays using strict equality for comparisons, i.e. `===`. @static @memberOf _ @category Arrays @param {...Array} [array] The arrays to inspect. @returns {Array} Returns an array of shared values. @example _.intersection([1, 2, 3], [5, 2, 1, 4], [2, 1]); // => ...
intersection
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function last(array, callback, thisArg) { var n = 0, length = array ? array.length : 0; if (typeof callback != 'number' && callback != null) { var index = length; callback = lodash.createCallback(callback, thisArg, 3); while (index-- && callback(array[index], index, array)...
Gets the last element or last `n` elements of an array. If a callback is provided elements at the end of the array are returned as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; (value, index, array). If a property name is provided for `callback` the created "_...
last
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function lastIndexOf(array, value, fromIndex) { var index = array ? array.length : 0; if (typeof fromIndex == 'number') { index = (fromIndex < 0 ? nativeMax(0, index + fromIndex) : nativeMin(fromIndex, index - 1)) + 1; } while (index--) { if (array[index] === value) { r...
Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection. If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of th...
lastIndexOf
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function pull(array) { var args = arguments, argsIndex = 0, argsLength = args.length, length = array ? array.length : 0; while (++argsIndex < argsLength) { var index = -1, value = args[argsIndex]; while (++index < length) { if (array[index...
Removes all provided values from the given array using strict equality for comparisons, i.e. `===`. @static @memberOf _ @category Arrays @param {Array} array The array to modify. @param {...*} [value] The values to remove. @returns {Array} Returns `array`. @example var array = [1, 2, 3, 1, 2, 3]; _.pull(array, 2, 3);...
pull
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function range(start, end, step) { start = +start || 0; step = typeof step == 'number' ? step : (+step || 1); if (end == null) { end = start; start = 0; } // use `Array(length)` so engines like Chakra and V8 avoid slower modes // http://youtu.be/XAqIpGU8ZZk#t=17m25s ...
Creates an array of numbers (positive and/or negative) progressing from `start` up to but not including `end`. If `start` is less than `stop` a zero-length range is created unless a negative `step` is specified. @static @memberOf _ @category Arrays @param {number} [start=0] The start of the range. @param {number} end ...
range
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function remove(array, callback, thisArg) { var index = -1, length = array ? array.length : 0, result = []; callback = lodash.createCallback(callback, thisArg, 3); while (++index < length) { var value = array[index]; if (callback(value, index, array)) { r...
Removes all elements from an array that the callback returns truey for and returns an array of removed elements. The callback is bound to `thisArg` and invoked with three arguments; (value, index, array). If a property name is provided for `callback` the created "_.pluck" style callback will return the property value ...
remove
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function rest(array, callback, thisArg) { if (typeof callback != 'number' && callback != null) { var n = 0, index = -1, length = array ? array.length : 0; callback = lodash.createCallback(callback, thisArg, 3); while (++index < length && callback(array[index], inde...
The opposite of `_.initial` this method gets all but the first element or first `n` elements of an array. If a callback function is provided elements at the beginning of the array are excluded from the result as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; (va...
rest
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function sortedIndex(array, value, callback, thisArg) { var low = 0, high = array ? array.length : low; // explicitly reference `identity` for better inlining in Firefox callback = callback ? lodash.createCallback(callback, thisArg, 1) : identity; value = callback(value); while...
Uses a binary search to determine the smallest index at which a value should be inserted into a given sorted array in order to maintain the sort order of the array. If a callback is provided it will be executed for `value` and each element of `array` to compute their sort ranking. The callback is bound to `thisArg` and...
sortedIndex
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function union() { return baseUniq(baseFlatten(arguments, true, true)); }
Creates an array of unique values, in order, of the provided arrays using strict equality for comparisons, i.e. `===`. @static @memberOf _ @category Arrays @param {...Array} [array] The arrays to inspect. @returns {Array} Returns an array of combined values. @example _.union([1, 2, 3], [5, 2, 1, 4], [2, 1]); // => [1...
union
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function uniq(array, isSorted, callback, thisArg) { // juggle arguments if (typeof isSorted != 'boolean' && isSorted != null) { thisArg = callback; callback = (typeof isSorted != 'function' && thisArg && thisArg[isSorted] === array) ? null : isSorted; isSorted = false; } ...
Creates a duplicate-value-free version of an array using strict equality for comparisons, i.e. `===`. If the array is sorted, providing `true` for `isSorted` will use a faster algorithm. If a callback is provided each element of `array` is passed through the callback before uniqueness is computed. The callback is bound...
uniq
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function without(array) { return baseDifference(array, slice(arguments, 1)); }
Creates an array excluding all provided values using strict equality for comparisons, i.e. `===`. @static @memberOf _ @category Arrays @param {Array} array The array to filter. @param {...*} [value] The values to exclude. @returns {Array} Returns a new array of filtered values. @example _.without([1, 2, 1, 0, 3, 1, 4...
without
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function xor() { var index = -1, length = arguments.length; while (++index < length) { var array = arguments[index]; if (isArray(array) || isArguments(array)) { var result = result ? baseUniq(baseDifference(result, array).concat(baseDifference(array, result))...
Creates an array that is the symmetric difference of the provided arrays. See http://en.wikipedia.org/wiki/Symmetric_difference. @static @memberOf _ @category Arrays @param {...Array} [array] The arrays to inspect. @returns {Array} Returns an array of values. @example _.xor([1, 2, 3], [5, 2, 1, 4]); // => [3, 5, 4] ...
xor
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function zip() { var array = arguments.length > 1 ? arguments : arguments[0], index = -1, length = array ? max(pluck(array, 'length')) : 0, result = Array(length < 0 ? 0 : length); while (++index < length) { result[index] = pluck(array, index); } return res...
Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on. @static @memberOf _ @alias unzip @category Arrays @param {...Array} [array] Arrays to process. @returns {Array} Returns a new array ...
zip
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function zipObject(keys, values) { var index = -1, length = keys ? keys.length : 0, result = {}; if (!values && length && !isArray(keys[0])) { values = []; } while (++index < length) { var key = keys[index]; if (values) { result[key] = value...
Creates an object composed from arrays of `keys` and `values`. Provide either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]` or two arrays, one of `keys` and one of corresponding `values`. @static @memberOf _ @alias object @category Arrays @param {Array} keys The array of keys. @param {Array} ...
zipObject
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function after(n, func) { if (!isFunction(func)) { throw new TypeError; } return function() { if (--n < 1) { return func.apply(this, arguments); } }; }
Creates a function that executes `func`, with the `this` binding and arguments of the created function, only after being called `n` times. @static @memberOf _ @category Functions @param {number} n The number of times the function must be called before `func` is executed. @param {Function} func The function to restri...
after
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function bind(func, thisArg) { return arguments.length > 2 ? createWrapper(func, 17, slice(arguments, 2), null, thisArg) : createWrapper(func, 1, null, null, thisArg); }
Creates a function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends any additional `bind` arguments to those provided to the bound function. @static @memberOf _ @category Functions @param {Function} func The function to bind. @param {*} [thisArg] The `this` binding of `func`. @param ...
bind
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function bindAll(object) { var funcs = arguments.length > 1 ? baseFlatten(arguments, true, false, 1) : functions(object), index = -1, length = funcs.length; while (++index < length) { var key = funcs[index]; object[key] = createWrapper(object[key], 1, null, null, object)...
Binds methods of an object to the object itself, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided all the function properties of `object` will be bound. @static @memberOf _ @category Functions @param {Object} object The...
bindAll
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function bindKey(object, key) { return arguments.length > 2 ? createWrapper(key, 19, slice(arguments, 2), null, object) : createWrapper(key, 3, null, null, object); }
Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those provided to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/...
bindKey
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function compose() { var funcs = arguments, length = funcs.length; while (length--) { if (!isFunction(funcs[length])) { throw new TypeError; } } return function() { var args = arguments, length = funcs.length; while (length--) { ...
Creates a function that is the composition of the provided functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function. @static @membe...
compose
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function curry(func, arity) { arity = typeof arity == 'number' ? arity : (+arity || func.length); return createWrapper(func, 4, null, null, null, arity); }
Creates a function which accepts one or more arguments of `func` that when invoked either executes `func` returning its result, if all `func` arguments have been provided, or returns a function that accepts one or more of the remaining `func` arguments, and so on. The arity of `func` can be specified if `func.length` i...
curry
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function debounce(func, wait, options) { var args, maxTimeoutId, result, stamp, thisArg, timeoutId, trailingCall, lastCalled = 0, maxWait = false, trailing = true; if (!isFunction(func)) { throw new TypeError;...
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will retur...
debounce
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
delayed = function() { var remaining = wait - (now() - stamp); if (remaining <= 0) { if (maxTimeoutId) { clearTimeout(maxTimeoutId); } var isCalled = trailingCall; maxTimeoutId = timeoutId = trailingCall = undefined; if (isCalled) { ...
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will retur...
delayed
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
maxDelayed = function() { if (timeoutId) { clearTimeout(timeoutId); } maxTimeoutId = timeoutId = trailingCall = undefined; if (trailing || (maxWait !== wait)) { lastCalled = now(); result = func.apply(thisArg, args); if (!timeoutId && !maxTimeoutId...
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will retur...
maxDelayed
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function defer(func) { if (!isFunction(func)) { throw new TypeError; } var args = slice(arguments, 1); return setTimeout(function() { func.apply(undefined, args); }, 1); }
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be provided to `func` when it is invoked. @static @memberOf _ @category Functions @param {Function} func The function to defer. @param {...*} [arg] Arguments to invoke the function with. @returns {number} Returns t...
defer
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function delay(func, wait) { if (!isFunction(func)) { throw new TypeError; } var args = slice(arguments, 2); return setTimeout(function() { func.apply(undefined, args); }, wait); }
Executes the `func` function after `wait` milliseconds. Additional arguments will be provided to `func` when it is invoked. @static @memberOf _ @category Functions @param {Function} func The function to delay. @param {number} wait The number of milliseconds to delay execution. @param {...*} [arg] Arguments to invoke t...
delay
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function memoize(func, resolver) { if (!isFunction(func)) { throw new TypeError; } var memoized = function() { var cache = memoized.cache, key = resolver ? resolver.apply(this, arguments) : keyPrefix + arguments[0]; return hasOwnProperty.call(cache, key) ...
Creates a function that memoizes the result of `func`. If `resolver` is provided it will be used to determine the cache key for storing the result based on the arguments provided to the memoized function. By default, the first argument provided to the memoized function is used as the cache key. The `func` is executed w...
memoize
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
memoized = function() { var cache = memoized.cache, key = resolver ? resolver.apply(this, arguments) : keyPrefix + arguments[0]; return hasOwnProperty.call(cache, key) ? cache[key] : (cache[key] = func.apply(this, arguments)); }
Creates a function that memoizes the result of `func`. If `resolver` is provided it will be used to determine the cache key for storing the result based on the arguments provided to the memoized function. By default, the first argument provided to the memoized function is used as the cache key. The `func` is executed w...
memoized
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function once(func) { var ran, result; if (!isFunction(func)) { throw new TypeError; } return function() { if (ran) { return result; } ran = true; result = func.apply(this, arguments); // clear the `func` variable so the funct...
Creates a function that is restricted to execute `func` once. Repeat calls to the function will return the value of the first call. The `func` is executed with the `this` binding of the created function. @static @memberOf _ @category Functions @param {Function} func The function to restrict. @returns {Function} Return...
once
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function partial(func) { return createWrapper(func, 16, slice(arguments, 1)); }
Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those provided to the new function. This method is similar to `_.bind` except it does **not** alter the `this` binding. @static @memberOf _ @category Functions @param {Function} func The function to partially appl...
partial
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function partialRight(func) { return createWrapper(func, 32, null, slice(arguments, 1)); }
This method is like `_.partial` except that `partial` arguments are appended to those provided to the new function. @static @memberOf _ @category Functions @param {Function} func The function to partially apply arguments to. @param {...*} [arg] Arguments to be partially applied. @returns {Function} Returns the new par...
partialRight
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function throttle(func, wait, options) { var leading = true, trailing = true; if (!isFunction(func)) { throw new TypeError; } if (options === false) { leading = false; } else if (isObject(options)) { leading = 'leading' in options ? options.leading : lead...
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the l...
throttle
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function wrap(value, wrapper) { return createWrapper(wrapper, 16, [value]); }
Creates a function that provides `value` to the wrapper function as its first argument. Additional arguments provided to the function are appended to those provided to the wrapper function. The wrapper is executed with the `this` binding of the created function. @static @memberOf _ @category Functions @param {*} value...
wrap
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function constant(value) { return function() { return value; }; }
Creates a function that returns `value`. @static @memberOf _ @category Utilities @param {*} value The value to return from the new function. @returns {Function} Returns the new function. @example var object = { 'name': 'fred' }; var getter = _.constant(object); getter() === object; // => true
constant
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function createCallback(func, thisArg, argCount) { var type = typeof func; if (func == null || type == 'function') { return baseCreateCallback(func, thisArg, argCount); } // handle "_.pluck" style callback shorthands if (type != 'object') { return property(func); } ...
Produces a callback bound to an optional `thisArg`. If `func` is a property name the created callback will return the property value for a given element. If `func` is an object the created callback will return `true` for elements that contain the equivalent object properties, otherwise it will return `false`. @static ...
createCallback
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function escape(string) { return string == null ? '' : String(string).replace(reUnescapedHtml, escapeHtmlChar); }
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities. @static @memberOf _ @category Utilities @param {string} string The string to escape. @returns {string} Returns the escaped string. @example _.escape('Fred, Wilma, & Pebbles'); // => 'Fred, Wilma, &amp; Pebbles'
escape
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function identity(value) { return value; }
This method returns the first argument provided to it. @static @memberOf _ @category Utilities @param {*} value Any value. @returns {*} Returns `value`. @example var object = { 'name': 'fred' }; _.identity(object) === object; // => true
identity
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function mixin(object, source, options) { var chain = true, methodNames = source && functions(source); if (!source || (!options && !methodNames.length)) { if (options == null) { options = source; } ctor = lodashWrapper; source = object; object = l...
Adds function properties of a source object to the destination object. If `object` is a function methods will be added to its prototype as well. @static @memberOf _ @category Utilities @param {Function|Object} [object=lodash] object The destination object. @param {Object} source The object of functions to add. @param ...
mixin
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function noConflict() { context._ = oldDash; return this; }
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function. @static @memberOf _ @category Utilities @returns {Function} Returns the `lodash` function. @example var lodash = _.noConflict();
noConflict
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT
function noop() { // no operation performed }
A no-operation function. @static @memberOf _ @category Utilities @example var object = { 'name': 'fred' }; _.noop(object) === undefined; // => true
noop
javascript
sdelements/lets-chat
media/js/vendor/lodash/lodash.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/lodash/lodash.js
MIT