Created
February 19, 2017 00:07
-
-
Save eligundry/d55e67912b9dfafc790c9781298e468d to your computer and use it in GitHub Desktop.
JS Unicode Splay
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
unicode_str = 'ππππππ πππππππππππππππππππππππππππ π‘π’' | |
splat = [...unicode_str]; |
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
'use strict'; | |
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | |
unicode_str = 'ππππππ πππππππππππππππππππππππππππ π‘π’'; | |
splat = [].concat(_toConsumableArray(unicode_str)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment