Plato on Github
Report Home
node_modules/es5-ext/string/#/ends-with/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.endsWith !== 'function') return false; return ((str.endsWith('trzy') === true) && (str.endsWith('raz') === false)); };