On Thu, May 17, 2018 at 11:16 AM, Ben Fletcher wrote:
> Consider adding the array .map() implementation directly to the String
> prototype.
There is a big difference between mapping over an array and mapping
over a string. Arrays can hold *anything*. Strings hold only
I would probably structure this so differently that it's hard to even say
where the changes should be. I don't know the Electron API, so the
following is almost certainly wrong, but it should demonstrate the basic
ideas:
```
const promisify = require('some-promisify-function');
const
Bradley Meck wrote:
>> 1. every call to `new Foo(...args)` creates a distinct object not
>> reference-equal to any other such call.
>
> Would this mean
>
> ```
> function factory() { return []; }
> ```
>
> would qualify as a constructor?
I'm thinking of that as a necessary, but not a sufficient
Bradley Meck wrote:
> I am unsure the exact question.
I certainly agree that it's not a well-formulated question. Perhaps
in the end it's not even coherent. But it seems to make some sense.
I suspect that the answer is simply that it cannot be done. But I
don't know how to demonstrate that.
Michael Haufe wrote:
> The question came up recently on CLJS [1] on how to determine if an object
> is safe to call as a Constructor.
The original question was a response to
|| You cannot determine whether a function can be called as a constructor
|| unless you try
John-David Dalton wrote:
> It's odd to me that:
>
> Reflect.ownKeys() has defined order but
> Reflect.enumerate() doesn't
>
> I'm using Reflect.enumerate() to create a `keysIn` implementation (like
> `keys` but for own & inherited key
> names).
>
> :+1: for more
Greg McLeod cle...@gmail.com wrote:
I really really love JS (it's so fun!), and while there are many features
in ES6 that I think are great (such as classes, modules, and import syntax)
there are things that quite frankly scare me quite a bit. Such examples
include destructuring and arrow
I don't have pointers to other es-discuss threads where this was
mentioned, but I do have a reason of my own for wanting this.
I started and help maintain Ramda [1], a functional programming
library for ES. It is a collection of utility functions similar in
scope to Underscore or lodash,
8 matches
Mail list logo