Squeegy / attr.coffee secret
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View attr.coffee
1 2 3
for own attr, value of this
if attr == 'foo' && value == 'bar'
console.log 'Found a foobar!'
View attr.coffee
1 2 3 4 5 6 7 8 9
var attr, value;
var __hasProp = Object.prototype.hasOwnProperty;
for (attr in this) {
if (!__hasProp.call(this, attr)) continue;
value = this[attr];
if (attr === 'foo' && value === 'bar') {
console.log('Found a foobar!');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.