A small utility function in pure js runtime, capable of effective tree-shaking.
View type declaration file retrieval api.
import { clone } from 'aidly';
console.log(clone(/a/ig)); // `/a/gi`
<!DOCTYPE html>
<html lang="en">
<body>
<script src="https://unpkg.com/aidly/dist/aidly.umd.js"></script>
<script>
const { clone } = window.Aidly;
console.log(clone(/a/ig)); // `/a/gi`
</script>
</body>
</html>