stubTrue.js 272 B

12345678910111213141516171819
  1. /**
  2. * This method returns `true`.
  3. *
  4. * @static
  5. * @memberOf _
  6. * @since 4.13.0
  7. * @category Util
  8. * @returns {boolean} Returns `true`.
  9. * @example
  10. *
  11. * _.times(2, _.stubTrue);
  12. * // => [true, true]
  13. */
  14. function stubTrue() {
  15. return true;
  16. }
  17. module.exports = stubTrue;