mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
20
react-app/node_modules/lodash/internal/cachePush.js
generated
vendored
Normal file
20
react-app/node_modules/lodash/internal/cachePush.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
var isObject = require('../lang/isObject');
|
||||
|
||||
/**
|
||||
* Adds `value` to the cache.
|
||||
*
|
||||
* @private
|
||||
* @name push
|
||||
* @memberOf SetCache
|
||||
* @param {*} value The value to cache.
|
||||
*/
|
||||
function cachePush(value) {
|
||||
var data = this.data;
|
||||
if (typeof value == 'string' || isObject(value)) {
|
||||
data.set.add(value);
|
||||
} else {
|
||||
data.hash[value] = true;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = cachePush;
|
Reference in New Issue
Block a user