From 2dae026aac30517d9649a51aa6e807ba9aa88787 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:46:07 +0800 Subject: [PATCH] docs: update readme to use esm (#103) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f6e1b85..de9bc7a 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ As an example, take the following: { a: 1 } !== { a: 1 } // These are two different objects, they hold different references and so are not strictly equal - even though they hold the same values inside { a: 1 } != { a: 1 } // They have the same type, meaning loose equality performs the same check as strict equality - they are still not equal. -var deepEql = require("deep-eql"); +import deepEql from "deep-eql"; deepEql({ a: 1 }, { a: 1 }) === true // deepEql can determine that they share the same keys and those keys share the same values, therefore they are deeply equal! ```