.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / date-to-primitive.js
1 'use strict';
2 var anObject = require('../internals/an-object');
3 var toPrimitive = require('../internals/to-primitive');
4
5 module.exports = function (hint) {
6   if (hint !== 'string' && hint !== 'number' && hint !== 'default') {
7     throw TypeError('Incorrect hint');
8   } return toPrimitive(anObject(this), hint !== 'number');
9 };