UNPKG

sinon

Version:

JavaScript test spies, stubs and mocks.

8 lines (5 loc) 166 B
"use strict"; var array = [null, "once", "twice", "thrice"]; module.exports = function timesInWords(count) { return array[count] || (count || 0) + " times"; };