Echo JS 0.11.0

<~>

troy-tae comments

troy-tae 1855 days ago. link 2 points
I tested many of case and it seems property check is cheaper than typeof check.
So I confirmed all of method of Array.
And it seems `pop` is shortest method name.
Now I check `pop` instead of isArray.
If you have any other idea, please notice me!
Thank you again :)
troy-tae 1855 days ago. link 1 point
Yes you're right.
It seems Array.isArray compare with Array.prototype and that work is expensive!
Let me try several case and I'll try to find what is the best code.
Thank you :)
[comment deleted]
troy-tae 1857 days ago. link 1 point
I think this module's role is different with classList.
As you said, classList is a API of DOM.
But this module just generates a string.
So... I think this module is useful for framework or library user(React, Angular, Vue)
In VanillaJS, absolutely classList is good :)

And no worries, I'm not care about the downvote.
All of positive or negative opinions always welcome!
troy-tae 1858 days ago. link 1 point
Oh I'm sorry.
This library is for generating css class names.
And this is the examples:
```
// arguments
OneSpaces('cls1', 'cls2') === 'cls2 cls1';
// array
OneSpaces(['cls1', 'cls2']) === 'cls2 cls1';
// exclude falsy
OneSpaces(null, true && 'cls1', false && 'cls2') === 'cls1';
// mix
OneSpaces('cls1', false && 'none', ['cls2']) === 'cls2 cls1';
```
I'll reflect it in my github.
Thank you :)