mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
10 lines
327 B
JavaScript
10 lines
327 B
JavaScript
|
'use strict';
|
||
|
var anObject = require('../internals/an-object');
|
||
|
var toPrimitive = require('../internals/to-primitive');
|
||
|
|
||
|
module.exports = function (hint) {
|
||
|
if (hint !== 'string' && hint !== 'number' && hint !== 'default') {
|
||
|
throw TypeError('Incorrect hint');
|
||
|
} return toPrimitive(anObject(this), hint !== 'number');
|
||
|
};
|