opusdev/vector-similarity-api
1
1'use strict';2 3var $TypeError = require('es-errors/type');4 5/** @type {import('./RequireObjectCoercible')} */6module.exports = function RequireObjectCoercible(value) {7 if (value == null) {8 throw new $TypeError((arguments.length > 0 && arguments[1]) || ('Cannot call method on ' + value));9 }10 return value;11};12 