1.0.10 • Published 20 days ago

nv-facutil-ppgflike-is v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
20 days ago

nv-facutil-ppgflike-is

  • some is-function for those could not use instanceof/typeof
  • not support Proxy (only nodejs has that API,browser has NOT)
  • cant NOT diff bwtween lambda VS method
  • all js, without-use-of-parser
  • for test type-name-meta in nvlang

install

  • npm install nv-facutil-ppgflike-is

usage

  const x   = require("nv-facutil-ppgflike-is");
   
  sg    : SyncGenerator
  ag    : AsyncGenrator
  slmbd : SyncLambda         
  almbd : AsyncLambda        
  
  smthd : SyncMethod         //useless for nvlang :   all methods in nvlang are built-in, user cant define method
  amthd : AsyncMethod        //useless for nvlang :   all methods in nvlang are built-in, user cant define method

  sfunc : SyncFunction       // not-include-generator
  afunc : AsyncFunction      // not-include-generator
  sgen  : SyncGenerator
  agen  : AsyncGenerator

  cls   : Class             //useless for nvlang: nvlang has NO cls, only has DataShape(which only permit accessor AND constructor)  

  iter  : Iterator

example

METHODS

APIS

        {
          is_sg: [Function: is_sg],
          is_ag: [Function: is_ag],
          is_g: [Function: is_g],
          _is_acallable: [Function: _is_acallable],
          is_lmbd_or_mthd: [Function: is_lmbd_or_mthd],
          is_slmbd_or_smthd: [Function: is_slmbd_or_smthd],
          is_almbd_or_amthd: [Function: is_almbd_or_amthd],
          is_func: [Function: is_func],
          is_sfunc_or_sgen: [Function: is_sfunc_or_sgen],
          is_afunc_or_agen: [Function: is_afunc_or_agen],
          is_sfunc: [Function: is_sfunc],
          is_afunc: [Function: is_afunc],
          is_sgen: [Function: is_sgen],
          is_agen: [Function: is_agen],
          is_gen: [Function: is_gen],
          is_cls: [Function: is_cls],
          is_iter: [Function: is_iter]
        }

LICENSE

  • ISC