dist/helper-js.es.js
function arraySibling(arr, item, offset) {
  var index = arr.indexOf(item);

  if (index === -1) {
    throw 'item is not in array';
  }

  if (isArray(offset)) {
    return offset.map(function (v) {
      return arr[index + v];
    });
  }

  return arr[index + offset];
}
function arraySibling(arr, item, offset) {
  var index = arr.indexOf(item);

  if (index === -1) {
    throw 'item is not in array';
  }

  if (isArray(offset)) {
    return offset.map(function (v) {
      return arr[index + v];
    });
  }

  return arr[index + offset];
}
function arraySibling ( arr , item , offset ) { var index = arr . indexOf ( item ) ; if ( index === - 1 ) { throw 'item is not in array' ; } if ( isArray ( offset ) ) { return offset . map ( function ( v ) { return arr [ index + v ] ; } ) ; } return arr [ index + offset ] ; }
offset can be many
offset can be many