Last active
August 29, 2015 14:06
-
-
Save Deliaz/e56aeb0ac3f12401dbac to your computer and use it in GitHub Desktop.
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
/** | |
* Дефолтный boolean параметр функции | |
* Учитывает 3 вариант: передаем true || false или вовсе не передаем (true по дефолту) | |
*/ | |
join = typeof join === 'undefined' ? true : join; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment