Introspection: Difference between revisions

Content added Content deleted
(Add Jsish)
Line 921: Line 921:
}
}


/* Check for "abs()" as function and "bloop" as defined value, call if both check true */
if ((bloop != undefined) && (typeof Math.abs == 'function')) {
if ((bloop != undefined) && (typeof Math.abs == 'function')) {
puts(Math.abs(bloop));
puts(Math.abs(bloop));
}
}


/* ECMAScript, this will sum all numeric values, not just strict integers */
var nums = 0, sums = 0, v;
var nums = 0, sums = 0, v;
for (v of Info.vars(this)) {
for (v of Info.vars(this)) {