Comparing version 1.1.0 to 1.2.0
1.2.0 / 2014-10-31 | ||
================== | ||
* feat: Supports Object.{is,assign,getOwnPropertySymbols,setPrototypeOf} | ||
1.1.0 / 2014-10-30 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -44,1 +44,8 @@ /**! | ||
// Object.{is,assign,getOwnPropertySymbols,setPrototypeOf} | ||
exports.Object = { | ||
is: typeof Object.is === 'function', | ||
assign: typeof Object.assign === 'function', | ||
getOwnPropertySymbols: typeof Object.getOwnPropertySymbols === 'function', | ||
setPrototypeOf: typeof Object.setPrototypeOf === 'function' | ||
}; |
{ | ||
"name": "enable", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Detect es6 features enable or not.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,3 +27,4 @@ enable | ||
Detect es6 features enable or not. | ||
Detect [es6](http://kangax.github.io/compat-table/es6) and [es7](http://kangax.github.io/compat-table/es7) | ||
features enable or not. | ||
@@ -42,3 +43,3 @@ ## Install | ||
if (enable.generator) { | ||
console.log('supports generator'); | ||
console.log('supports generator: `function* a() {}`'); | ||
} | ||
@@ -53,18 +54,20 @@ | ||
} | ||
``` | ||
## API | ||
if (enable.Object.is) { | ||
console.log('supports `Object.is();`'); | ||
} | ||
### .generator | ||
if (enable.Object.assign) { | ||
console.log('supports `Object.assign();`'); | ||
} | ||
Detect generator enable or not | ||
if (enable.Object.getOwnPropertySymbols) { | ||
console.log('supports `Object.getOwnPropertySymbols();`'); | ||
} | ||
### .let | ||
if (enable.Object.setPrototypeOf) { | ||
console.log('supports `Object.setPrototypeOf();`'); | ||
} | ||
``` | ||
Supports `let a;` or not | ||
### .const | ||
Supports `const a = 1;` or not | ||
## Test | ||
@@ -71,0 +74,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6598
42
107