Skip to content

Instantly share code, notes, and snippets.

View mshustov's full-sized avatar

Mikhail Shustov mshustov

  • ClickHouse
  • Berlin, Germany
View GitHub Profile
@mshustov
mshustov / checks.js
Last active August 29, 2015 14:16 — forked from andre487/checks.js
exports.fastElements = function(obj) {
if (%HasFastSmiElements(obj)) {
console.log('Fast SMI elements');
}
if (%HasFastSmiOrObjectElements(obj)) {
console.log('Fast SMI or Object elements');
}
if (%HasFastObjectElements(obj)) {
console.log('Fast Object elements');
}