/
home
/
infinitibizsol
/
.trash
/
node_modules.3
/
cloudinary
/
lib
/
utils
/
encoding
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/node_modules.3/cloudinary/lib/utils/encoding/encodeDoubleArray.js
const isArray = require('lodash/isArray'); const toArray = require('../parsing/toArray'); /** * Serialize an array of arrays into a string * @param {string[] | Array.<Array.<string>>} array - An array of arrays. * If the first element is not an array the argument is wrapped in an array. * @returns {string} A string representation of the arrays. */ function encodeDoubleArray(array) { array = toArray(array); if (!isArray(array[0])) { array = [array]; } return array.map(e => toArray(e).join(",")).join("|"); } module.exports = encodeDoubleArray;
Copyright ©2k19 -
Hexid
|
Tex7ure