feat(ivy): support for i18n & ICU expressions (#26275)

PR Close #26275
This commit is contained in:
Olivier Combe
2018-11-13 09:36:30 +01:00
committed by Andrew Kushnir
parent d97994b27f
commit a63fd2d0f5
25 changed files with 2980 additions and 2538 deletions

View File

@ -249,4 +249,16 @@ export function getParentInjectorTNode(
export const defaultScheduler =
(typeof requestAnimationFrame !== 'undefined' && requestAnimationFrame || // browser only
setTimeout // everything else
).bind(global);
).bind(global);
/**
* Equivalent to ES6 spread, add each item to an array.
*
* @param items The items to add
* @param arr The array to which you want to add the items
*/
export function addAllToArray(items: any[], arr: any[]) {
for (let i = 0; i < items.length; i++) {
arr.push(items[i]);
}
}