elderwand 0.1.62 → 0.1.64

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.
@@ -99,6 +99,17 @@ module.exports = function(){
99
99
  });
100
100
  addPropertyToClass(global, "fwLog", EWLog)
101
101
 
102
+ addPropertyToClass(Date.prototype, 'getStartOfDay',function(){
103
+ var start = new Date(this.getTime())
104
+ start.setHours(0,0,0,0);
105
+ return start
106
+ })
107
+
108
+ addPropertyToClass(Date.prototype, 'getEndOfDay',function(){
109
+ var start = new Date(this.getTime())
110
+ start.setHours(23,59,59,59);
111
+ return start
112
+ })
102
113
  addPropertyToClass(Array.prototype, 'removeDuplicates',function(predicate){
103
114
  var set = [];
104
115
  for(var key in this){
@@ -197,7 +208,7 @@ module.exports = function(){
197
208
  }
198
209
  return obj;
199
210
  });
200
- addPropertyToClass(Array.prototype,"group", function(array, blend, keyFunc){
211
+ addPropertyToClass(Array.prototype,"group", function(keyFunc){
201
212
  var obj = {};
202
213
  for(var i = 0; i < this.length; i++){
203
214
  var item = this[i];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elderwand",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "description": "Mamtas Technology Internal Framework",
5
5
  "main": "./node_modules/.bin/nodemon index.js",
6
6
  "scripts": {