feat(core): introduce a CSS lexer/parser
This commit is contained in:

committed by
Alex Eagle

parent
201475e8d8
commit
b72bab49aa
@ -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; });
|
||||
}
|
||||
|
Reference in New Issue
Block a user