is-dom-node-list
ES2015 module for type checking DOM NodeLists
Last updated 3 years ago by jlmakes .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-dom-node-list 
SYNC missed versions from official npm registry.

is-dom-node-list

Build status Coverage Version 0.3KB min+gzip MIT License

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

Current Tags

  • 1.2.1                                ...           latest (3 years ago)

6 Versions

  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 114
This Month 603
Last Day 42
Last Week 140
Last Month 828
Dependencies (1)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |