elderwand 0.1.61 → 0.1.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -197,6 +197,22 @@ module.exports = function(){
197
197
  }
198
198
  return obj;
199
199
  });
200
+ addPropertyToClass(Array.prototype,"group", function(array, blend, keyFunc){
201
+ var obj = {};
202
+ for(var i = 0; i < this.length; i++){
203
+ var item = this[i];
204
+ var key = keyFunc(this[i], i);
205
+ if(item && key && !obj[key]){
206
+ obj[key] = []
207
+ }
208
+
209
+ if(item && key){
210
+ obj[key].push(item);
211
+ }
212
+
213
+ }
214
+ return obj;
215
+ });
200
216
  addPropertyToClass(Array.prototype,"notIn", function(array, comp){
201
217
  var arr = [];
202
218
  for(var i = 0; i < this.length; i++){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elderwand",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
4
4
  "description": "Mamtas Technology Internal Framework",
5
5
  "main": "./node_modules/.bin/nodemon index.js",
6
6
  "scripts": {