diff options
Diffstat (limited to 'cli/js/web/dom_util.ts')
-rw-r--r-- | cli/js/web/dom_util.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cli/js/web/dom_util.ts b/cli/js/web/dom_util.ts deleted file mode 100644 index 4b9ce3f50..000000000 --- a/cli/js/web/dom_util.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - -export function getDOMStringList(arr: string[]): DOMStringList { - Object.defineProperties(arr, { - contains: { - value(searchElement: string): boolean { - return arr.includes(searchElement); - }, - enumerable: true, - }, - item: { - value(idx: number): string | null { - return idx in arr ? arr[idx] : null; - }, - }, - }); - return arr as string[] & DOMStringList; -} |