Created
April 17, 2017 06:47
-
-
Save qzm/12425aef3d153fcad7870b2cba6fbb56 to your computer and use it in GitHub Desktop.
Return same value
This file contains hidden or 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
/** | |
* Return same value | |
* var _a = identity(a) || b; | |
* 当a是undefined的时候,_a 可以是undefined | |
*/ | |
var identity = function (_) { return _; }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment