UNPKG
@kcirtaptrick/framer-motion
Version:
latest (6.2.9)
6.2.10
6.2.9
A simple and powerful React animation library
github.com/framer/motion
framer/motion
@kcirtaptrick/framer-motion
/
dist
/
es
/
utils
/
warn-once.mjs
12 lines
(10 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
warned =
new
Set
();
function
warnOnce
(
condition, message, element
) {
if
(condition || warned.
has
(message))
return
;
console
.
warn
(message);
if
(element)
console
.
warn
(element); warned.
add
(message); }
export
{ warnOnce };