1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00

build, demo, editorconfig fixes, flat fallback

This commit is contained in:
codecalm
2019-12-18 21:45:53 +01:00
parent 06bd29b3dd
commit 60d22b56a1
772 changed files with 53656 additions and 77889 deletions

View File

@@ -1,3 +1,14 @@
if (!Array.prototype.flat) {
Object.defineProperty(Array.prototype, 'flat', {
value: function(depth = 1) {
return this.reduce(function (flat, toFlatten) {
return flat.concat((Array.isArray(toFlatten) && (depth>1)) ? toFlatten.flat(depth-1) : toFlatten);
}, []);
}
});
}
const all_libs = require('../pages/_data/libs'),
path = require('path'),
{ exec } = require('child_process');