Logo

TODAY I LEARNED

Use the spread syntax to find what an emoji is made up of

Spread syntax allows an iterable such as an array expression or string to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected, or an object expression to be expanded in places where zero or more key-value pairs (for object literals) are expected. [1]

[1] Source: MDN Web Docs

[...'๐Ÿ‘จโ€๐ŸŽค']
(3)ย ['๐Ÿ‘จ', 'โ€', '๐ŸŽค']0: "๐Ÿ‘จ"1: "โ€"2: "๐ŸŽค"length: 3[[Prototype]]: Array(0)
[...'๐ŸงŸ']
['๐ŸงŸ']
[...'๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง']
(7)ย ['๐Ÿ‘ฉ', 'โ€', '๐Ÿ‘ฉ', 'โ€', '๐Ÿ‘ง', 'โ€', '๐Ÿ‘ง']

Learned from @mgechev at https://twitter.com/mgechev/status/1490920854313648128/photo/1

Useful? not sure

Interesting? Hell yeah!

Learned by Victor Velazquez on Feb 8, 2022

973983 adforcodereview v3 0211021 c02 021121