Skip to content

Instantly share code, notes, and snippets.

View hansSchall's full-sized avatar

Hans Schallmoser hansSchall

  • Germany
  • 16:47 (UTC +02:00)
View GitHub Profile
@hansSchall
hansSchall / index.html
Created September 3, 2022 14:52
simple typescript setup for browser apps
<!doctype html>
<html>
<head>
<script src="test.js"></script>
</head>
<body>
<div id="test"></div>
</body>
</html>
@hansSchall
hansSchall / a_splitjoincomma.md
Last active August 28, 2022 15:44
How to store a string[] as string

How to store a string array as string

A little helper function:

export function escapeRegExp(str: string) {
    return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}