Yomguithereal / baobab

JavaScript & TypeScript persistent and optionally immutable data tree with cursors.
MIT License
3.15k stars 117 forks source link

check global object is not undefined #462

Open xuming314 opened 8 years ago

Yomguithereal commented 8 years ago

I see your point @xuming314. But I propose you to edit the PR with the following test that should be even more robust:

typeof ArrayBuffer === 'function' && item instanceof ArrayBuffer

What do you think?

Yomguithereal commented 7 years ago

@xuming314 any update?