Plato on Github
Report Home
node_modules/es5-ext/string/#/contains/is-implemented.js
Maintainability
76.49
Lines of code
8
Difficulty
8.25
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
'use strict'; var str = 'razdwatrzy'; module.exports = function () { if (typeof str.contains !== 'function') return false; return ((str.contains('dwa') === true) && (str.contains('foo') === false)); };