From e5f35fbdf901387d82b285f41ec87b1d1d2b3a69 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 1 Jan 2021 22:26:20 +0100 Subject: :bug: fix --- src/Utils.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/Utils.ts') diff --git a/src/Utils.ts b/src/Utils.ts index 09d8e8c6..291372c1 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -1,14 +1,5 @@ import fs from "fs/promises"; - -declare global { - interface Array { - flat(): T; - } -} - -Array.prototype.flat = function () { - return this.reduce((acc, val) => (Array.isArray(val) ? acc.concat(val.flat()) : acc.concat(val)), []); -}; +import "missing-native-js-functions"; export interface traverseDirectoryOptions { dirname: string; -- cgit 1.5.1