Skip to content
Browse files

Remove String#toArray and Object#isObject as per update.

  • Loading branch information...
1 parent b0f41c1 commit eef83248d763e9e03d52b1259bc32ff3c96d84e7 @paulmillr committed
Showing with 5 additions and 12 deletions.
  1. +3 −0 CHANGELOG.md
  2. +2 −4 README.md
  3. +0 −8 es6-shim.js
View
3 CHANGELOG.md
@@ -1,3 +1,6 @@
+# es6-shim 0.5.2 (June 17, 2012)
+* Removed `String#toArray` and `Object.isObject` as per spec updates.
+
# es6-shim 0.5.1 (June 14, 2012)
* Made Map and Set follow Spidermonkey implementation instead of V8.
`var m = Map(); m.set('key', void 0); m.has('key');` now gives true.
View
6 README.md
@@ -15,12 +15,12 @@ Or just include es6-shim before your scripts if you want to use it in browser.
## Safe shims
* Maps & Sets
* String.prototype.repeat, String.prototype.startsWith,
-String.prototype.endsWith, String.prototype.contains, String.prototype.toArray
+String.prototype.endsWith, String.prototype.contains
* Array.from, Array.of
* Number.MAX_INTEGER, Number.EPSILON, Number.parseInt, Number.parseFloat,
Number.isNaN, Number.toInteger, Number.isInteger, Number.isFinite
* Object.getOwnPropertyDescriptors, Object.getPropertyDescriptor,
-Object.getPropertyNames, Object.is, Object.isnt, Object.isObject
+Object.getPropertyNames, Object.is, Object.isnt
* Math.sign, Math.log10, Math.log2, Math.log1p, Math.expm1, Math.cosh,
Math.sinh, Math.tanh, Math.acosh, Math.asinh, Math.atanh, Math.hypot,
Math.trunc (accuracy is 1e-11).
@@ -46,9 +46,7 @@ possible to implement them properly:
'abc'.startsWith('a') // true
'abc'.endsWith('a') // false
Object.is(NaN, NaN) // Fixes ===. 0 isnt -0, NaN is NaN
-Object.isObject(null) // false. Fixes null.
'123'.repeat(2) // '123123'
-'123'.toArray() // ['1', '2', '3']
'john alice'.contains('john') // true
Number.isNaN('123') // false. isNaN('123') will give true.
Number.toInteger(2.4) // 2. converts values to IEEE754 double precision integers
View
8 es6-shim.js
@@ -47,10 +47,6 @@
contains: function(substring) {
return this.indexOf(substring) !== -1;
- },
-
- toArray: function() {
- return this.split('');
}
});
@@ -166,10 +162,6 @@
isnt: function(x, y) {
return !Object.is(x, y);
- },
-
- isObject: function(value) {
- return typeof value === 'object' && value !== null;
}
});

0 comments on commit eef8324

Please sign in to comment.
Something went wrong with that request. Please try again.