-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(payments): PAYMENTS-2590 Review Feedback
- Loading branch information
Showing
7 changed files
with
24 additions
and
24 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 was deleted.
Oops, something went wrong.
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,10 @@ | ||
import isEmptyString from './is-empty-string'; | ||
import isNil from './is-nil'; | ||
|
||
/** | ||
* @param {*} value | ||
* @returns {boolean} | ||
*/ | ||
export default function isEmptyStringOrNil(value) { | ||
return isEmptyString(value) || isNil(value); | ||
} |
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
import isEmptyStringOrNil from './is-emptystring-or-nil'; | ||
import omitProperty from './omit-property'; | ||
|
||
/** | ||
* @param {Object} object | ||
* @returns {Object} | ||
*/ | ||
export default function omitEmptyStringAndNil(object) { | ||
return omitProperty(object, isEmptyStringOrNil); | ||
} |
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