UNPKG

sugar

Version:

A Javascript utility library for working with native objects.

10 lines (8 loc) 191 B
'use strict'; function getCoercedStringSubject(obj) { if (obj == null) { throw new TypeError('String required.'); } return String(obj); } module.exports = getCoercedStringSubject;