Thursday, January 22, 2026
HomeLanguagesJavascriptUnderscore.js _.isArrayBuffer() Function

Underscore.js _.isArrayBuffer() Function

Underscore.js is a JavaScript library that provides a lot of useful functions that help in the programming in a big way like the map, filter, invoke, etc even without using any built-in objects.

The _.isArrayBuffer() function is an inbuilt function in Underscore.js library of JavaScript which is used to check  if the stated object is an ArrayBuffer or not.

Syntax:

_.isArrayBuffer(object)

Parameters: It accepts a single parameters which is specified below:

  • object: It is the object stated.

Return Value: This method returns true if the stated object is an ArrayBuffer else it returns false.

Example 1:




<!DOCTYPE html>
<html>
  
<head>
    <script src=
    </script>
</head>
  
<body>
    <script>
        console.log(_.isArrayBuffer(
            new ArrayBuffer(3, 4, 6, 4)));
    </script>
</body>
  
</html>


Output:

true

Example 2:




<!DOCTYPE html>
<html>
  
<head>
    <script src=
    </script>
</head>
  
<body>
    <script>
        console.log(_.isArrayBuffer(
            "neveropen", "CS"));
    </script>
</body>
  
</html>


Output:

false

Reference: https://underscorejs.org/#isArrayBuffer

Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, neveropen Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!
RELATED ARTICLES

1 COMMENT

Most Popular

Dominic
32475 POSTS0 COMMENTS
Milvus
119 POSTS0 COMMENTS
Nango Kala
6847 POSTS0 COMMENTS
Nicole Veronica
11977 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12064 POSTS0 COMMENTS
Shaida Kate Naidoo
6986 POSTS0 COMMENTS
Ted Musemwa
7220 POSTS0 COMMENTS
Thapelo Manthata
6933 POSTS0 COMMENTS
Umr Jansen
6912 POSTS0 COMMENTS