iotjs: fallback to array
iotjs: fallback to array

IoT.js is an alternate javascript runtime
powered by Jerryscript engine
(designed for contrainted devices).

Buffer/Arrays objects have limited API too,
so this extra test will make the code working on both runtime.

Change-Id: I73861a3fd47047fd5c8f9d3ab24cb6f46c4b37b4
Signed-off-by: Philippe Coval <e55eb7f5ae8caa4c9c0d2fc7cb5c13ca6c4cd6e0@samsung.com>

miroRucka/bh1750