3 ms·
Some rather spectacular failures, though of course these things happen with statistical methods: /** * @param {string} val * @return {?} */ var ex
by Groxx 12y ago
Some rather spectacular failures, though of course these things happen with statistical methods:
/**
* @param {string} val
* @return {?}
*/
var expect = function(val) {
return "string" == typeof val;
};
/**
* @param {boolean} deepDataAndEvents
* @return {?}
*/
var clone = function(deepDataAndEvents) {
return "boolean" == typeof deepDataAndEvents;
};
/**
* @param {(boolean|number|string)} obj
* @return {?}
*/
var isString = function(obj) {
return "number" == typeof obj;
};
Still, neat idea. Seems like there's a lot of room to train it, probably a lot of fun to try to improve things :)