Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment isAnagram

  • isAnagram(str: string, x: any): boolean
  • Tests if a value is an anagram.

    Parameters

    • str: string

      comparison string

    • x: any

      value to test

    Returns boolean

    boolean indicating if a value is an anagram

    Example

    var bool = isAnagram( 'I am a weakish speller', 'William Shakespeare' );
    // returns true

    Example

    var bool = isAnagram( 'bat', 'tabba' );
    // returns false