summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/array/sizeof.js.map
blob: d27516f0b62decdb91d12397fff29d30fc00c80f (plain) (blame)
1
{"version":3,"sources":["../../../src/php/array/sizeof.js"],"names":["module","exports","sizeof","mixedVar","mode","count","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,QAAjB,EAA2BC,IAA3B,EAAiC;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,QAAQC,QAAQ,gBAAR,CAAZ;;AAEA,SAAOD,MAAMF,QAAN,EAAgBC,IAAhB,CAAP;AACD,CAXD","file":"sizeof.js","sourcesContent":["module.exports = function sizeof (mixedVar, mode) {\n  //  discuss at: http://locutus.io/php/sizeof/\n  // original by: Philip Peterson\n  //   example 1: sizeof([[0,0],[0,-4]], 'COUNT_RECURSIVE')\n  //   returns 1: 6\n  //   example 2: sizeof({'one' : [1,2,3,4,5]}, 'COUNT_RECURSIVE')\n  //   returns 2: 6\n\n  var count = require('../array/count')\n\n  return count(mixedVar, mode)\n}\n"]}