mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-25 10:01:30 -04:00
9 lines
153 B
JavaScript
9 lines
153 B
JavaScript
'use strict';
|
|
|
|
var isSet = require('./is-set');
|
|
|
|
module.exports = function (x) {
|
|
if (!isSet(x)) throw new TypeError(x + " is not a Set");
|
|
return x;
|
|
};
|