- From: Jordan Harband <notifications@github.com>
- Date: Fri, 07 Apr 2017 23:12:51 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 8 April 2017 06:13:28 UTC
@annevk there's lots of them - `function isMap(value) { try { Map.prototype.has.call(value); return true; } catch (e) { return false; } }` works fine ([link](https://tc39.github.io/ecma262/#sec-map.prototype.has)) However, I'd encourage you to follow the pattern of `Array.isArray`, since having to catch exceptions is unergonomic and slow. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/434#issuecomment-292698044
Received on Saturday, 8 April 2017 06:13:28 UTC