UNPKG

cucumber

Version:

The official JavaScript implementation of Cucumber.

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