Yes, I really wish core js would include this method :)