time-to-botec

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

repl.txt (535B)


      1 
      2 {{alias}}( value )
      3     Tests if a value is a collection.
      4 
      5     A collection is defined as an array, typed array, or an array-like object
      6     (excluding strings and functions).
      7 
      8     Parameters
      9     ----------
     10     value: any
     11         Value to test.
     12 
     13     Returns
     14     -------
     15     bool: boolean
     16         Boolean indicating whether a value is a collection.
     17 
     18     Examples
     19     --------
     20     > var bool = {{alias}}( [] )
     21     true
     22     > bool = {{alias}}( { 'length': 0 } )
     23     true
     24     > bool = {{alias}}( {} )
     25     false
     26 
     27     See Also
     28     --------
     29