feat: nil/null/empty/blank literals, resolves #102

This commit is contained in:
harttle
2019-02-24 21:50:01 +08:00
parent 54b2adce12
commit 88c9e96392
19 changed files with 355 additions and 52 deletions
+10
View File
@@ -0,0 +1,10 @@
import { Drop } from './drop'
import { isFunction } from 'src/util/underscore'
export interface IDrop {
value(): any
}
export function isDrop (value: any): value is IDrop {
return value instanceof Drop && isFunction((value as any).value)
}