2016-03-25 13:03:49 -07:00
|
|
|
exports.print = function (obj) {
|
|
|
|
return obj.constructor.name
|
|
|
|
}
|
2015-12-30 01:41:31 +05:30
|
|
|
|
2016-03-25 13:03:49 -07:00
|
|
|
exports.echo = function (obj) {
|
|
|
|
return obj
|
|
|
|
}
|
2016-07-25 16:30:40 +09:00
|
|
|
|
|
|
|
exports.typedArray = function (name) {
|
|
|
|
const int16 = new Int16Array(name.length)
|
|
|
|
for (let i = 0; i < name.length; ++i) {
|
|
|
|
int16[i] = name[i]
|
|
|
|
}
|
|
|
|
return int16
|
|
|
|
}
|