Symbol description inference

2016-10-25 Thread Shahar Or
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

Re: Array.prototype.includesAll

2016-06-14 Thread Shahar Or
> > 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

Array.prototype.includesAll

2016-06-14 Thread Shahar Or
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

Re: Array.prototype.includes with multiple arguments

2016-06-10 Thread Shahar Or
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"