feat: automatic output escaping, closes #500

This commit is contained in:
Harttle
2022-04-22 02:19:36 +08:00
parent e69a51025e
commit f88490cd3c
9 changed files with 188 additions and 7 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { Drop } from '../drop/drop'
const toStr = Object.prototype.toString
export const toString = Object.prototype.toString
const toLowerCase = String.prototype.toLowerCase
export const hasOwnProperty = Object.hasOwnProperty
@@ -57,7 +57,7 @@ export function isNil (value: any): boolean {
export function isArray (value: any): value is any[] {
// be compatible with IE 8
return toStr.call(value) === '[object Array]'
return toString.call(value) === '[object Array]'
}
/*