time-to-botec

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

repl.txt (1218B)


      1 
      2 {{alias}}( value )
      3     Tests if a value is a string.
      4 
      5     Parameters
      6     ----------
      7     value: any
      8         Value to test.
      9 
     10     Returns
     11     -------
     12     bool: boolean
     13         Boolean indicating whether value is a string.
     14 
     15     Examples
     16     --------
     17     > var bool = {{alias}}( 'beep' )
     18     true
     19     > bool = {{alias}}( new String( 'beep' ) )
     20     true
     21     > bool = {{alias}}( 5 )
     22     false
     23 
     24 
     25 {{alias}}.isPrimitive( value )
     26     Tests if a value is a string primitive.
     27 
     28     Parameters
     29     ----------
     30     value: any
     31         Value to test.
     32 
     33     Returns
     34     -------
     35     bool: boolean
     36         Boolean indicating whether value is a string primitive.
     37 
     38     Examples
     39     --------
     40     > var bool = {{alias}}.isPrimitive( 'beep' )
     41     true
     42     > bool = {{alias}}.isPrimitive( new String( 'beep' ) )
     43     false
     44 
     45 
     46 {{alias}}.isObject( value )
     47     Tests if a value is a `String` object.
     48 
     49     Parameters
     50     ----------
     51     value: any
     52         Value to test.
     53 
     54     Returns
     55     -------
     56     bool: boolean
     57         Boolean indicating whether value is a `String` object.
     58 
     59     Examples
     60     --------
     61     > var bool = {{alias}}.isObject( new String( 'beep' ) )
     62     true
     63     > bool = {{alias}}.isObject( 'beep' )
     64     false
     65 
     66     See Also
     67     --------
     68