UNPKG

wikibase-edit

Version:
23 lines (19 loc) 400 B
import { isArray } from '../utils.js' import * as validate from '../validate.js' export default params => { let { guid, hash } = params validate.guid(guid) if (isArray(hash)) { hash.forEach(validate.hash) hash = hash.join('|') } else { validate.hash(hash) } return { action: 'wbremovereferences', data: { statement: guid, references: hash, }, } }