Function aeqHelper

  • Helper function for determining 'loki' abstract equality which is a little more abstract than == aeqHelper(5, '5') === true aeqHelper(5.0, '5') === true aeqHelper(new Date("1/1/2011"), new Date("1/1/2011")) === true aeqHelper({a:1}, {z:4}) === true (all objects sorted equally) aeqHelper([1, 2, 3], [1, 3]) === false aeqHelper([1, 2, 3], [1, 2, 3]) === true aeqHelper(undefined, null) === true

    Parameters

    • prop1: string | number | boolean
    • prop2: string | number | boolean

    Returns boolean

Generated using TypeDoc