Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

element-splice

array.splice but for HTMLElement.

var splice = require('element-splice')
var h      = require('hyperscript')

var todo = h('ol')

splice(todo, [
  0, //start at
  0, //delete this many
  h('li', 'get out of bed'), //insert the rest!
  h('li', 'etc...')
])

document.appendChild(todo)

//and then later...

splice(todo, [0, 1]) //delete the first item.

License

MIT

You can’t perform that action at this time.