feat(Change Detection): Add support for keyed access

This commit is contained in:
Victor Berchet
2014-12-02 13:14:07 +01:00
parent 7bc282d15e
commit 7cb93fd59e
4 changed files with 38 additions and 6 deletions

View File

@ -109,6 +109,8 @@ class NumberWrapper {
static get NaN => double.NAN;
static bool isNaN(num value) => value.isNaN;
static bool isInteger(value) => value is int;
}
class RegExpWrapper {
@ -161,4 +163,4 @@ dynamic getMapKey(value) {
normalizeBlank(obj) {
return isBlank(obj) ? null : obj;
}
}

View File

@ -136,6 +136,10 @@ export class NumberWrapper {
static get NaN():number {
return NaN;
}
static isInteger(value):boolean {
return Number.isInteger(value);
}
}
export function int() {};
@ -197,4 +201,4 @@ export function getMapKey(value) {
export function normalizeBlank(obj) {
return isBlank(obj) ? null : obj;
}
}