<commit_before>DM Simple JavaScript
====================


An extension methods to simplify javascript.

--------------------


Test
--------------------

- QUnit 1.12.0

Implemented Methods
--------------------

### String

> **NOTE:** Methods to simplify the handling of javascript string.

**gsub(search, replacement)** Simplify replacement. Exemple:

```
/** return String Hell0 W0rd **/
"Hello Word".gsub("o", 0);
"Hello Word".gsub(/o/, 0);

/** return String Hello 0rd **/
"Hello Word".gsub("Wo", 0);
"Hello Word".gsub(/Wo/, 0);

/** return String Hello Word **/
"Hello Word".gsub("O", 0);
"Hello Word".gsub(/O/, 0);
"Hello Word".gsub("wO", 0);
"Hello Word".gsub(/wO/, 0);
```

### Array

> **NOTE:** Methods to simplify the handling of javascript array.

**uniq()** Simplify uniqueness. Exemple:

```
/** return Array 2,3 **/
[1,2,3,1].uniq();
[2,3].uniq();

/** return Array "b","B" **/
['a','b','c','a','B','c'].uniq();
['b','B'].uniq();

/** return Array "b",2,"B" **/
['a','b','c',2,'a','B','c'].uniq();
['b',2,'B'].uniq();
```

--------------------

@Demo [DM Simple JavaScript](http://mesquitadandao.github.io/dm_simple_javascript).

@License [Public Domain (Unlicense)](http://choosealicense.com/licenses/unlicense/).
<commit_msg>edit README<commit_after>DM Simple JavaScript
====================


An extension methods to simplify javascript.

--------------------


Test
--------------------

- QUnit 1.12.0

Implemented Methods
--------------------

### String

> **NOTE:** Methods to simplify the handling of javascript string.

**gsub(search, replacement)** Simplify replacement. Exemple:

```
/** return String Hell0 W0rd **/
"Hello Word".gsub("o", 0);
"Hello Word".gsub(/o/, 0);

/** return String Hello 0rd **/
"Hello Word".gsub("Wo", 0);
"Hello Word".gsub(/Wo/, 0);

/** return String Hello Word **/
"Hello Word".gsub("O", 0);
"Hello Word".gsub(/O/, 0);
"Hello Word".gsub("wO", 0);
"Hello Word".gsub(/wO/, 0);
```

### Array

> **NOTE:** Methods to simplify the handling of javascript array.

**uniq()** Simplify uniqueness. Exemple:

```
/** return Array 2,3 **/
[1,2,3,1].uniq();
[2,3].uniq();

/** return Array "b","B" **/
['a','b','c','a','B','c'].uniq();
['b','B'].uniq();

/** return Array "b",2,"B" **/
['a','b','c',2,'a','B','c'].uniq();
['b',2,'B'].uniq();
```

--------------------

@Last Release [DM Simple JavaScript (Download and Demo)](http://mesquitadandao.github.io/dm_simple_javascript).

@License [Public Domain (Unlicense)](http://choosealicense.com/licenses/unlicense/).

{'fraction_non_alphanumeric': 0.31026252983293556, 'fraction_numerical': 0.020684168655529037, 'mean_word_length': 3.3663194444444446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1932335', 'n_tokens_mistral': 945, 'n_tokens_neox': 862, 'n_words': 209}