Subject: [PATCH v2 21/44] gnu: Add node-is-typed-array.

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

* gnu/packages/node-xyz.scm (node-is-typed-array): New variable.

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

diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 77153c187e..01e5c5c709 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -2238,6 +2238,14 @@ (define-public node-which-typed-array
 robustly cache all language-level intrinsics at first require time.")
     (license license:expat)))
 
+(define-public node-is-typed-array
+  (trivial-node-package
+   "is-typed-array" 0 "(value) => !!whichTypedArray(value)"
+   "This package provides a Javascript static method that determines whether
+the passed value is a @code{TypedArray} object."
+   #:mozilla-doclink "Global_Objects/TypedArray"
+   #:propagated-inputs (list node-which-typed-array)))
+
 (define-public node-wrappy
   (package
     (name "node-wrappy")
-- 
2.41.0