From 6555fb80fdd8f6a5d201efadec3189d1244830a0 Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 22:05:25 +0100 Subject: Izbrisala bin, obj i node-modules. --- .../Front/node_modules/lodash/size.js | 46 ---------------------- 1 file changed, 46 deletions(-) delete mode 100644 sandbox/testAppNevena/Front/node_modules/lodash/size.js (limited to 'sandbox/testAppNevena/Front/node_modules/lodash/size.js') diff --git a/sandbox/testAppNevena/Front/node_modules/lodash/size.js b/sandbox/testAppNevena/Front/node_modules/lodash/size.js deleted file mode 100644 index 3561fc10..00000000 --- a/sandbox/testAppNevena/Front/node_modules/lodash/size.js +++ /dev/null @@ -1,46 +0,0 @@ -var baseKeys = require('./_baseKeys'), - getTag = require('./_getTag'), - isArrayLike = require('./isArrayLike'), - isString = require('./isString'), - stringSize = require('./_stringSize'); - -/** `Object#toString` result references. */ -var mapTag = '[object Map]', - setTag = '[object Set]'; - -/** - * Gets the size of `collection` by returning its length for array-like - * values or the number of own enumerable string keyed properties for objects. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object|string} collection The collection to inspect. - * @returns {number} Returns the collection size. - * @example - * - * _.size([1, 2, 3]); - * // => 3 - * - * _.size({ 'a': 1, 'b': 2 }); - * // => 2 - * - * _.size('pebbles'); - * // => 7 - */ -function size(collection) { - if (collection == null) { - return 0; - } - if (isArrayLike(collection)) { - return isString(collection) ? stringSize(collection) : collection.length; - } - var tag = getTag(collection); - if (tag == mapTag || tag == setTag) { - return collection.size; - } - return baseKeys(collection).length; -} - -module.exports = size; -- cgit v1.2.3