mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
feat: automatic output escaping, closes #500
This commit is contained in:
@@ -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]'
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user