time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (575B)


      1 
      2 {{alias}}( value )
      3     Tests if a value is generator object-like.
      4 
      5     Parameters
      6     ----------
      7     value: any
      8         Value to test.
      9 
     10     Returns
     11     -------
     12     bool: boolean
     13         Boolean indicating whether value is generator object-like.
     14 
     15     Examples
     16     --------
     17     > var obj = {
     18     ...     'next': function noop() {},
     19     ...     'return': function noop() {},
     20     ...     'throw': function noop() {}
     21     ... };
     22     > var bool = {{alias}}( obj )
     23     true
     24     > bool = {{alias}}( {} )
     25     false
     26     > bool = {{alias}}( null )
     27     false
     28 
     29     See Also
     30     --------
     31