diff options
Diffstat (limited to 'node_modules/locutus/php/array/sizeof.js')
-rw-r--r-- | node_modules/locutus/php/array/sizeof.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/locutus/php/array/sizeof.js b/node_modules/locutus/php/array/sizeof.js new file mode 100644 index 0000000..2c54e9c --- /dev/null +++ b/node_modules/locutus/php/array/sizeof.js @@ -0,0 +1,15 @@ +'use strict'; + +module.exports = function sizeof(mixedVar, mode) { + // discuss at: http://locutus.io/php/sizeof/ + // original by: Philip Peterson + // example 1: sizeof([[0,0],[0,-4]], 'COUNT_RECURSIVE') + // returns 1: 6 + // example 2: sizeof({'one' : [1,2,3,4,5]}, 'COUNT_RECURSIVE') + // returns 2: 6 + + var count = require('../array/count'); + + return count(mixedVar, mode); +}; +//# sourceMappingURL=sizeof.js.map
\ No newline at end of file |