-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modifying proxy object to build a composed object, fixes issue with v…
…ue 2.4.0 and greater
- Loading branch information
Showing
16 changed files
with
2,392 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ var config = { | |
'reduce', | ||
'toPath', | ||
'isArray', | ||
'isDate', | ||
'isEmpty', | ||
'has', | ||
'isNumber', | ||
'get', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* eslint-disable */ | ||
function isDate (obj) { | ||
return obj instanceof Date | ||
} | ||
|
||
isDate._accepts = ['ANY'] | ||
|
||
export default isDate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* eslint-disable */ | ||
function isEmpty (obj) { | ||
if (obj === '' || obj === null || obj === undefined) return true | ||
if ((obj instanceof Buffer || Array.isArray(obj)) && !obj.length) return true | ||
if ((obj instanceof Map || obj instanceof Set) && !obj.size) return true | ||
if (typeof obj === 'object' && !Object.keys(obj).length) return true | ||
return false | ||
} | ||
|
||
isEmpty._accepts = ['ANY'] | ||
|
||
export default isEmpty |
Oops, something went wrong.