UNPKG
@kickscondor/umbrellajs
Version:
latest (3.1.2)
3.1.2
3.1.1
Lightweight and intuitive javascript library
umbrellajs.com
kickscondor/umbrella
@kickscondor/umbrellajs
/
src
/
plugins
/
hasclass
/
hasclass.js
6 lines
(5 loc)
•
206 B
JavaScript
View Raw
1
2
3
4
5
6
// Find out whether the matched elements have a class or not
u.
prototype
.
hasClass
=
function
(
) {
// Check if any of them has all of the classes
return
this
.
is
(
'.'
+
this
.
args
(
arguments
).
join
(
'.'
)); };