is-implemented.js 158 B

12345678
  1. 'use strict';
  2. var str = 'foo';
  3. module.exports = function () {
  4. if (typeof str.repeat !== 'function') return false;
  5. return (str.repeat(2) === 'foofoo');
  6. };