Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / chain-able-deps   js

Repository URL to install this package:

Version: 6.0.4 

/ src / dot / dottable.ts

import { AnyArrayOrObj } from '../_typings'
import { isObj, isArray, isString } from '../is'

// const isDot = require('./is/dot')
// const isDottable = (obj, path) => isObj(obj) && isDot(path)
export default (obj: AnyArrayOrObj, path?: string | string[]) => (isObj(obj) && isString(path)) || isArray(path);