I'm trying to stay hip, so I've been playing with the spread operator and emojis. I noticed that when I want to filter
empty strings (''
) out the resulting "spread-ed" array, the empty strings are not being removed. Why is that?
console.log([...'
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
There is in your string an invisible character, which is a variation selector. You can see this if you print the character codes: