Created
February 4, 2017 08:59
-
-
Save ahy4/3ffc013fbd2b85f25aa3c5fcf133f62e 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
| console.log("abcde".split``); // .split("") より2文字短い | |
| console.log([1,2,3].join``); // .join("") より2文字短い | |
| console.log("aabbcc".split`b`.join`B`); // .replace(/b/g,"B") より 1文字短い | |
| console.log("abcde".match`b.d`); // .match(/b.d/) より2文字短い | |
| console.log([1,2,3].push``); // .length+1 より 2文字短い |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment