demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/unzip.js

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/unzip.js
Status
scanned
Type
file
Name
unzip.js
Extension
.js
Programming language
JavaScript
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
1282 (1.3 KB)
MD5
30b0221ed83ab6d44f8532e9162e3ba5
SHA1
9adc3e8903f6134c27951f3a558286a7667656d9
SHA256
21f9ebd1100e9559ac578cf1d4530e8cf3ca9898dda43a58ba8820da2d62b9f5
SHA512

      
    
SHA1_git
fce0ec78d1090f74ada6b01719806a388e494fb1
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
unzip.js | 1.3 KB |

var arrayFilter = require('./_arrayFilter'), arrayMap = require('./_arrayMap'), baseProperty = require('./_baseProperty'), baseTimes = require('./_baseTimes'), isArrayLikeObject = require('./isArrayLikeObject'); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * This method is like `_.zip` except that it accepts an array of grouped * elements and creates an array regrouping the elements to their pre-zip * configuration. * * @static * @memberOf _ * @since 1.2.0 * @category Array * @param {Array} array The array of grouped elements to process. * @returns {Array} Returns the new array of regrouped elements. * @example * * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]); * // => [['a', 1, true], ['b', 2, false]] * * _.unzip(zipped); * // => [['a', 'b'], [1, 2], [true, false]] */ function unzip(array) { if (!(array && array.length)) { return []; } var length = 0; array = arrayFilter(array, function(group) { if (isArrayLikeObject(group)) { length = nativeMax(group.length, length); return true; } }); return baseTimes(length, function(index) { return arrayMap(array, baseProperty(index)); }); } module.exports = unzip;
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/lodash@4.17.20 mit JavaScript