1.2.1 • Published 6 years ago

is-dom-node-list v1.2.1

Weekly downloads
9,516
License
MIT
Repository
github
Last release
6 years ago

is-dom-node-list

Installation

Browser

A simple and fast way to get started is to include this script on your page:

<script src="https://unpkg.com/is-dom-node-list"></script>

This will create the global variable isDomNodeList.

Module

npm install is-dom-node-list

CommonJS

const isDomNodeList = require('is-dom-node-list')

ES2015

import isDomNodeList from 'is-dom-node-list'

Usage

const nodeList = document.querySelectorAll('.cookies')
isDomNodeList(nodeList)
// => true

const nodeArray = Array.prototype.slice.call(nodeList)
isDomNodeList(nodeArray)
// => false
1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago