which is better way that check type of object?

function istype(o) {
        return Object.prototype.toString.call(o);
}

console.log(istype(1));//[object Number]

console.log(typeof(1));//number

I do not know difference about above thing!
which is better?