[‘a’, ‘b’, ‘c’, 2] с сохранением порядка ?
есть метод flat
вот так http://www.typescriptlang.org/play/?ssl=50&ssc=1&pln=36&pc=1#code/C4TwDgpgBA4ghsAFhATgHgCoBkCWBnYKCAD2AgDsATPKFCOSge3IBsQo5yQBtAXQD4oAXigAKAHSSW+YAC4o2GQEphggAwBuAFChIUAMoBjBGXQYAEvUpFSFahy4AaBRjg4WNslRp0GzNg48AsJiyAzyFlbOkuLAbiwRru4qQuraOuDQAAp0kFSYlgyedjScIM4YSR4kXva+TKzsZXyCQlpQHQqF1jUlge2dAPwu8cXe-Z2TUMNGJqgFUSPugr3j8EjzOOQAZqhQWbgE-ANTU8MHMiennfLkEABuqFeTtw9PL1B3jyjputD6YGkwEwh0IqzqVn8TS4LWEV0UBDG9jKV2G62QZlBK1s41mwFMaC2uxQ+26ziJeyyVWO12mUAA3lAwpR5FkyVA4u5WVUoABfZ43T5vFBXV7fX6ZKDdEEyJE+SGNQKwkQAoEyo7cADkzM1vG0fwU8XVYJxEL8iuawRVgJwwIRwH4Ws5LF1Er0AEEwHlKAsiuD5eaApaKjz-YFWvDunKJkMltVTaUuAKOudcnY0GUKt1sbUaBSSRcCMmzgyoNwANJQLZQADWEBAjG2+1BvFkxdplbDdYbTciDHbtNjfcoFd4A8HUES8XHU35E46Yve10XIo+X1QbugADEWHNyGgABrR+pQpW8ZwAfQASseFUGYbwQsqGVdgAB3RjyHd7w-cACM55QJ63poNezgHtwagCPwjhXMwEBfru+IUGgfDOMB6ZgVAEFQfwMFXOQ8HyGBVyoCgjAoCusG8twVxHmG3CZoEj7DJq76MJqk50dGjFcCxUCavBnFtpM9EJmW-GaoRdzCVcmpkRRmpaHqWgZHoxBPpqcCas4WoAEY6WWmqGIZ3AAEy8JZKkGuwIjfsh+7EPw2hAA
Обсуждают сегодня