FaasJS
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文

Documents / @faasjs/react / equal

Function: equal()

equal(a, b): boolean

Compares two values for deep equality.

This function checks if two values are deeply equal by comparing their types and contents. It handles various data types including primitives, arrays, dates, regular expressions, functions, maps, sets, and promises.

Parameters

a

any

The first value to compare.

b

any

The second value to compare.

Returns

boolean

true if the values are deeply equal, false otherwise.