Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bianco.dom-to-array

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bianco.dom-to-array - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

index.js

@@ -6,3 +6,3 @@ 'use strict';

* @param { HTMLElement|NodeList } els - single html element or a node list
* @returns { Object } always a loopable object
* @returns { Array } always a loopable object
*/

@@ -9,0 +9,0 @@ function domToArray(els) {

/**
* Converts any DOM node/s to a loopable array
* @param { HTMLElement|NodeList } els - single html element or a node list
* @returns { Object } always a loopable object
* @returns { Array } always a loopable object
*/

@@ -6,0 +6,0 @@ export default function domToArray(els) {

{
"name": "bianco.dom-to-array",
"version": "0.0.4",
"version": "0.0.5",
"description": "Converts any DOM node/s to a loopable array",

@@ -11,2 +11,3 @@ "main": "index.js",

"build": "rollup -c",
"doc": "documentation readme index.next.js -s API",
"test": "npm run lint && mocha test.js"

@@ -13,0 +14,0 @@ },

@@ -9,4 +9,2 @@ # bianco.dom-to-array

## Usage

@@ -37,18 +35,30 @@

Array.isArray($li) // => true
```
[travis-image]: https://img.shields.io/travis/biancojs/dom-to-array.svg?style=flat-square
[travis-url]: https://travis-ci.org/biancojs/dom-to-array
[license-image]: http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
[license-url]: LICENSE.txt
[npm-version-image]: http://img.shields.io/npm/v/bianco.dom-to-array.svg?style=flat-square
[npm-downloads-image]: http://img.shields.io/npm/dm/bianco.dom-to-array.svg?style=flat-square
[npm-url]: https://npmjs.org/package/bianco.dom-to-array
## API
- `domToArray` Converts any DOM node/s to a loopable array
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
### domToArray
[travis-image]:https://img.shields.io/travis/biancojs/dom-to-array.svg?style=flat-square
[travis-url]:https://travis-ci.org/biancojs/dom-to-array
Converts any DOM node/s to a loopable array
[license-image]:http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
[license-url]:LICENSE.txt
**Parameters**
[npm-version-image]:http://img.shields.io/npm/v/bianco.dom-to-array.svg?style=flat-square
[npm-downloads-image]:http://img.shields.io/npm/dm/bianco.dom-to-array.svg?style=flat-square
[npm-url]:https://npmjs.org/package/bianco.dom-to-array
- `els` **([HTMLElement](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) \| [NodeList](https://developer.mozilla.org/en-US/docs/Web/API/NodeList))** single html element or a node list
Returns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** always a loopable object
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc