src/parse.js
function parsePointer (pointer) {
  if (pointer === '') {
    return []
  }
  if (pointer.charAt(0) !== '/') {
    throw new error.PointerError('Invalid JSON pointer: ' + pointer)
  }
  return pointer.substring(1).split(/\//).map(unescape)
}
function parsePointer (pointer) {
  if (pointer === '') {
    return []
  }
  if (pointer.charAt(0) !== '/') {
    throw new error.PointerError('Invalid JSON pointer: ' + pointer)
  }
  return pointer.substring(1).split(/\//).map(unescape)
}
function parsePointer ( pointer ) { if ( pointer === '' ) { return [ ] } if ( pointer . charAt ( 0 ) !== '/' ) { throw new error . PointerError ( 'Invalid JSON pointer: ' + pointer ) } return pointer . substring ( 1 ) . split ( / \/ / ) . map ( unescape ) }
Convert a JSON Pointer into a key path array

@private
@param {string} pointer
@returns {array}
Convert a JSON Pointer into a key path array