Checks if two arrays are not equal.

Type signature

<T>(xs?: T[], ys?: T[]) => boolean

Examples

differs([1, 2, 3], [1, 2]);
// ⇒ true
Try in REPL
differs([1, 2, 3], [1, 2, 3]);
// ⇒ false
Try in REPL

Questions

  • How to check if two arrays differ?
  • How to check if two arrays are not equal?
  • How to check if two arrays are equal or not?

TypeScript sourceJavaScript source