Joined February 2012
·
Posted to
JS / JQuery: Check if an Element exists
over 1 year
ago
For clarity you can also add it to jQuery
$.fn.exists = function () { return this.length !== 0; }
and then simply -> $(".homepage").exists()
Posted to
From a string containing a class name to a Real Class Object
over 1 year
ago
@richoh You're right; I just wanted to 'clarify' that it could not be a Class
Achievements
169 Karma
1,639 Total ProTip Views

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014

Nephila Komaci
Have at least one original repos where PHP is the dominant language

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2013

Altruist
Increase developer well-being by sharing at least 20 open source projects

Honey Badger
Have at least one original Node.js-specific repo

Charity
Fork and commit to someone's open source project in need

Epidexipteryx 3
Have at least three original repo where C++ is the dominant language

Kona
Have at least one original repo where CoffeeScript is the dominant language

Mongoose 3
Have at least three original repos where Ruby is the dominant language

T-Rex
Have at least one original repo where C is the dominant language

Epidexipteryx
Have at least one original repo where C++ is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Forked
Have a project valued enough to be forked by someone else

Mongoose
Have at least one original repo where Ruby is the dominant language
Samuel Chow, Thank you for this!
One question, how did you manage authorization through Headers for your API docs?