MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / Notifications.js

File Notifications.js

assets/js/Notifications.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// utility function returning a random item from the input array
2const randomItem = (arr) => arr[Math.floor(Math.random() * arr.length)];
3
4const messageTitle = ["info", "success", "warning", "danger"];

Callers

nothing calls this directly

Calls 1

generateMessageFunction · 0.85

Tested by

no test coverage detected