Symbol()
}
symbols.foo // Symbol(foo)
symbols.bar // Symbol(bar)
```
and `const foo = Symbol()` and such?
Here is my real use case:
https://github.com/yarom-and-shahar/cyclejs-shooter/blob/feaaf0ecd7620832b4bff90ab0f701d51ddcf3ff/src/ui-from-state/index.test.js#L
>
> What's the point of using `reduce` instead of `every`?
>
Of course. Updated to use `.every`.
I disagree with this test
>
> ```js
> expect([2, 3].includesAll()).toBe(false)
> ```
>
> The array `[2,3]` includes all items in `[]`. So it should return `true`.
>
There are no items in `[]` so
Hey, following up from:
https://esdiscuss.org/topic/array-prototype-includes-with-multiple-arguments
How about something like this `Array.prototype.includesAll`?
http://codepen.io/mightyiam/pen/PzNLKr/?editors=0012
___
es-discuss mailing list
On Sat, Jun 11, 2016 at 12:01 AM Oriol Bugzilla
wrote:
> Array.prototype.includes uses the second argument as the starting index.
>
> Therefore, these calls would be identical, but you want them to behave
> differently:
>
> ```
> ["a"].includes("a", 0); // true -- "a"
4 matches
Mail list logo