Package Exports
- nv-facutil-basic
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nv-facutil-basic) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nv-facutil-basic
- nv-facutil-basic
install
- npm install nv-facutil-basic
usage
example
const fac_bsc = require("nv-facutil-basic");
> fac_bsc.is_node()
true
>
> var d = {a:{b:{c:200}}}
> fac_bsc.optional_chaining(d,'a','b')
{ c: 200 }
> fac_bsc.optional_chaining(d,'a','b','e','c')
undefined
>
> fac_bsc.nullish(null,200)
200
> fac_bsc.nullish(undefined,200)
200
> fac_bsc.nullish(false,200)
false
> fac_bsc.nullish(true,200)
true
>
class Cls {
constructor(){
this.tag="div"
}
}
function repr(that,stag,etag) {
return(stag+that.tag+etag)
}
fac_bsc.add_repr(Cls,repr,'<','>')
> var o = new Cls()
undefined
> o
<div>
>API
- fac_bsc.add_repr(Cls,repr_func,...other_repr_func_args)
- fac_bsc.is_node()
- fac_bsc.optional_chaining(obj,...keys)
- fac_bsc.nullish(a,b);
LICENSE
- ISC