Plato on Github
Report Home
libs/extend.js
Maintainability
134.20
Lines of code
18
Difficulty
7.27
Estimated Errors
0.07
Function weight
By Complexity
By SLOC
(function(sc) { "use strict"; require("./libs"); var extend = function(child, parent) { var ctor = function() { this.constructor = child; }; ctor.prototype = parent.prototype; /* jshint newcap: false */ child.prototype = new ctor(); /* jshint newcap: true */ return child; }; sc.libs.extend = extend; })(sc);