place.js 187 B

12345678
  1. 'use strict'
  2. module.exports = place
  3. /* Get the position of `node` in `parent`. */
  4. function place(parent, child) {
  5. return parent && parent.children && parent.children.indexOf(child)
  6. }