Skip to content

Instantly share code, notes, and snippets.

View tienthanhjlw's full-sized avatar
🪓
Sharpen

Nguyễn Tiến Thành tienthanhjlw

🪓
Sharpen
View GitHub Profile
@tienthanhjlw
tienthanhjlw / list.ts
Created November 6, 2020 04:32
Split array data
splitToShowData() {
this.dataTableShow$ = from([]);
const paths = _.chunk(this.dataTable, 25);
let list = [];
if (paths && paths.length) {
this.layoutService.isShowLoadingBar.next(true);
this.dataTableShow$ = from(paths[0]);
this.dataTableShow$ = interval(300).take(paths.length).map((i) => {
if (i == 0) {
list = [];