UNPKG

@naverpay/hidash

Version:

improved lodash

2 lines (1 loc) 420 B
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function u(n){if(!n||n.length===0)return[];const i=n.length;let l=0;for(let e=0;e<i;e++){const t=n[e];t&&t.length>l&&(l=t.length)}const o=new Array(l);for(let e=0;e<l;e++)o[e]=new Array(i);for(let e=0;e<i;e++){const t=n[e];if(t)for(let r=0;r<t.length;r++)o[r][e]=t[r]}return o}exports.default=u;exports.unzip=u;