docs: website for LiquidJS

This commit is contained in:
harttle
2020-03-28 17:21:07 +08:00
parent 0633dbeabb
commit 3e42d6b1b0
422 changed files with 14509 additions and 50335 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import { Drop } from './drop'
import { IComparable } from './icomparable'
import { Comparable } from './comparable'
import { isObject, isString, isArray } from '../util/underscore'
export class EmptyDrop extends Drop implements IComparable {
export class EmptyDrop extends Drop implements Comparable {
public equals (value: any) {
if (isString(value) || isArray(value)) return value.length === 0
if (isObject(value)) return Object.keys(value).length === 0