feat(core): introduce a CSS lexer/parser

This commit is contained in:
Matias Niemelä
2016-02-02 10:37:08 +02:00
committed by Alex Eagle
parent 201475e8d8
commit b72bab49aa
9 changed files with 2839 additions and 1 deletions

View File

@ -473,3 +473,11 @@ export function isPrimitive(obj: any): boolean {
export function hasConstructor(value: Object, type: Type): boolean {
return value.constructor === type;
}
export function bitWiseOr(values: number[]): number {
return values.reduce((a, b) => { return a | b; });
}
export function bitWiseAnd(values: number[]): number {
return values.reduce((a, b) => { return a & b; });
}