time-to-botec

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

repl.txt (1720B)


      1 
      2 {{alias}}( value )
      3     Tests if a value is an array-like object containing only positive integers.
      4 
      5     Parameters
      6     ----------
      7     value: any
      8         Value to test.
      9 
     10     Returns
     11     -------
     12     bool: boolean
     13         Boolean indicating whether value is an array-like object containing only
     14         positive integers.
     15 
     16     Examples
     17     --------
     18     > var bool = {{alias}}( [ 3.0, new Number(3.0) ] )
     19     true
     20     > bool = {{alias}}( [ 3.0, '3.0' ] )
     21     false
     22 
     23 
     24 {{alias}}.primitives( value )
     25     Tests if a value is an array-like object containing only positive primitive
     26     integer values.
     27 
     28     Parameters
     29     ----------
     30     value: any
     31         Value to test.
     32 
     33     Returns
     34     -------
     35     bool: boolean
     36         Boolean indicating whether value is an array-like object containing only
     37         positive primitive integer values.
     38 
     39     Examples
     40     --------
     41     > var bool = {{alias}}.primitives( [ 1.0, 10.0 ] )
     42     true
     43     > bool = {{alias}}.primitives( [ 1.0, 0.0, 10.0 ] )
     44     false
     45     > bool = {{alias}}.primitives( [ 3.0, new Number(1.0) ] )
     46     false
     47 
     48 
     49 {{alias}}.objects( value )
     50     Tests if a value is an array-like object containing only number objects
     51     having positive integer values.
     52 
     53     Parameters
     54     ----------
     55     value: any
     56         Value to test.
     57 
     58     Returns
     59     -------
     60     bool: boolean
     61         Boolean indicating whether value is an array-like object containing only
     62         number objects having positive integer values.
     63 
     64     Examples
     65     --------
     66     > var bool = {{alias}}.objects( [ new Number(1.0), new Number(10.0) ] )
     67     true
     68     > bool = {{alias}}.objects( [ 1.0, 2.0, 10.0 ] )
     69     false
     70     > bool = {{alias}}.objects( [ 3.0, new Number(1.0) ] )
     71     false
     72 
     73     See Also
     74     --------
     75