Created
December 15, 2015 03:05
-
-
Save TheOpenDevProject/f1c43db57ea09ab7c3e2 to your computer and use it in GitHub Desktop.
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
//ES6 | |
var myFunction = function(optionalParam = true){ | |
} | |
//ES5 FROM REPL | |
"use strict"; | |
var myFunction = function myFunction() { | |
var optionalParam = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment