equals 1.0.2

Deep equality checker

Released 2018-02-02.

To install, run:

haxelib install equals 1.0.2

See using Haxelib in Haxelib documentation for more information.

Maintainerelnabo
Websitehttps://github.com/elnabo/equals/
Current version1.0.2
StatisticsInstalled 12 times
LicenseMIT
Tags

README.md

equals - Deep equality for Haxe

Installation

haxelib install equals

Usage

using equals.Equal

class Main {
	public static function main () {
		var a = [1, 3, 5];
		var b = [1, 4, 5];
		var c = [1, 3, 5, 7];
		var d = [1, 3, 5];
		trace(a.equals(b)); // false
		trace(a.equals(c)); // false
		trace(a.equals(d)); // true
	}
}

Limitations

  • Direct function equality returns physical equality
  • Object and typedef function var are ignored if not null