File: is-native-implemented.js

package info (click to toggle)
node-es6-set 0.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 216 kB
  • sloc: javascript: 638; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
// Exports true if environment provides native `Set` implementation,
// whatever that is.

'use strict';

module.exports = (function () {
	if (typeof Set === 'undefined') return false;
	return (Object.prototype.toString.call(Set.prototype) === '[object Set]');
}());