UNPKG

cucumber

Version:

The official JavaScript implementation of Cucumber.

8 lines (7 loc) 176 B
var String = { count: function count(hayStack, needle) { var splitHayStack = hayStack.split(needle); return splitHayStack.length - 1; } }; module.exports = String;