-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove defaulting of null and undefined to empty string
This commit changes the algorithm for nested lookups to avoid throwing. The new algorithm distinguishes failed lookups from successful lookups which happen to result in null or undefined: > format('result: {foo.bar.baz}', null) 'result: ' > format('result: {foo.bar.baz}', {foo: {bar: {baz: null}}}) 'result: null'
- Loading branch information
1 parent
711dfc8
commit d174ab7
Showing
2 changed files
with
39 additions
and
19 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