Subject: [PATCH v2 05/44] gnu: Add node-has.

From: Nicolas Graves <[email-masked]>
Date: Thu, 8 Feb 2024 01:24:28 +0100

* gnu/packages/node-xyz.scm (node-has): New variable.

Change-Id: I9e890eaecc13c3d9c67a89f5e93f449473dcbe62
---
 gnu/packages/node-xyz.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 1e930e16ed..eaa1959207 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -515,6 +515,15 @@ (define-public node-global-gradle-clean
 clean task of each project.")
     (license license:expat)))
 
+(define-public node-has
+  (trivial-node-package
+   "has" 0
+   "(obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)"
+   "This package returns a Javascript function that returns a boolean
+indicating whether this object has the specified property as its own property
+(as opposed to inheriting it)."
+   #:mozilla-doclink "Global_Objects/Object/hasOwnProperty"))
+
 (define-public node-has-proto
   (trivial-node-package
    "has-proto" 0 "() => true"
-- 
2.41.0