Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-binary-string/docs/types/index.d"

Index

Functions

Functions

Export assignment isBinaryString

  • isBinaryString(value: any): boolean
  • Tests if a value is a binary string.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating if an input value is a binary string

    Example

    var bool = isBinaryString( '1000101' );
    // returns true

    Example

    var bool = isBinaryString( 'beep' );
    // returns false

    Example

    var bool = isBinaryString( '' );
    // returns false