Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
exotic / dist / types / primitive / toPrimitive.d.ts
Size: Mime:
import { Primitive } from './primitives';
/**
 * @since 5.0.0-beta.9
 * @name toPrimitive
 * @alias toValue
 * @alias toValueOf
 *
 * @param {*} x value to convert to primitive
 * @return {Primitive}
 *
 * {@link https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf mozilla_valueof}
 * @see {@link mozilla_valueof}
 *
 * @example
 *    toPrimitive(10) //=> 10
 */
declare const toPrimitive: (x: any) => Primitive;
export { toPrimitive };
export default toPrimitive;