Comparing version 1.0.1 to 1.0.2
@@ -22,3 +22,3 @@ "use strict"; | ||
* @param collection | ||
* @return {*|Array.<T>} | ||
* @return Array | ||
*/ | ||
@@ -38,2 +38,21 @@ value: function sort(collection) { | ||
} | ||
/** | ||
* Removed empty elements from an array. | ||
* If strict mode the will remove the 0 values too. | ||
* | ||
* @param array | ||
* @param strict | ||
* @return Array | ||
*/ | ||
}, { | ||
key: "cleanEmpties", | ||
value: function cleanEmpties(array) { | ||
var strict = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; | ||
return array.filter(function (e) { | ||
if (strict) return e === 0 || e;else return e; | ||
}); | ||
} | ||
}]); | ||
@@ -40,0 +59,0 @@ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.pslHelper = exports.pslTable = exports.pslPopup = undefined; | ||
exports.pslArray = exports.pslHelper = exports.pslTable = exports.pslPopup = undefined; | ||
@@ -21,2 +21,6 @@ var _PopUp = require('./PopUp'); | ||
var _Array = require('./Array'); | ||
var _Array2 = _interopRequireDefault(_Array); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -28,2 +32,5 @@ | ||
// Prototype extensions | ||
var pslArray = exports.pslArray = _Array2.default; | ||
exports.default = { | ||
@@ -30,0 +37,0 @@ popup: pslPopup, |
{ | ||
"name": "psl-core", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Core Library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
43192
17
171