CoolFace
Apppublic

opusdev/vector-similarity-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
RequireObjectCoercible.js12 linesDownload Raw Back to es-object-atoms
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