Repository URL to install this package:
Version:
2.0.4 ▾
|
import { isObj } from '../../types/obj/check/isObj'
import { createPredicateForProperty } from '../deps/createInstanceofPredicate'
import { IObservableArray } from '../typings'
import { toMobxSymbol } from '../deps/toMobxSymbol'
const isObservableArrayAdministration = createPredicateForProperty(
'ObservableArrayAdministration'
)
export function isObservableArray(thing): thing is IObservableArray<any> {
return (
isObj(thing) && isObservableArrayAdministration(thing[toMobxSymbol(thing)])
)
}