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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user