• Test if string is valid EAN: Matches EAN-8/EAN-13 regex Has valid check digit.

    Example

    expect(isEAN('9421023610112').value).toBeTruthy()
    

    Parameters

    • target: string

      The target

    Returns Result<boolean | undefined>

Generated using TypeDoc