<commit_before># knockout-arrayTransforms

Allows for creating efficient transformations of observable arrays.

```JavaScript
var integers = ko.observableArray([10, 9, 8, 7, 6, 5, 4, 3, 2, 1]);

var evenIntegersOver5 =
    integers.sortBy(function (n) {
        return n;
    }).filter(function (n) {
        return n > 5 && n % 2 === 0;
    });

// evenIntegersOver5() -> [6, 8, 10];

// The sortBy and filter callbacks are only called for 12 and 11, not for every item in the arrays.
integers.splice(0, 0, 12, 11);

// evenIntegersOver5() -> [6, 8, 10, 12];
```

## Transformations

all, any, filter, map, sortBy.

## Create your own

For examples, see ```arrayTransforms.makeTransform``` in the source code.

Note: While I don’t plan on making tons of breaking changes to ```makeTransform```, the API is still in early stages and may be tweaked in later versions (as of 0.1.0).

## license

MIT (X11). See LICENSE.<commit_msg>Capitalization<commit_after># knockout-arrayTransforms

Allows for creating efficient transformations of observable arrays.

```JavaScript
var integers = ko.observableArray([10, 9, 8, 7, 6, 5, 4, 3, 2, 1]);

var evenIntegersOver5 =
    integers.sortBy(function (n) {
        return n;
    }).filter(function (n) {
        return n > 5 && n % 2 === 0;
    });

// evenIntegersOver5() -> [6, 8, 10];

// The sortBy and filter callbacks are only called for 12 and 11, not for every item in the arrays.
integers.splice(0, 0, 12, 11);

// evenIntegersOver5() -> [6, 8, 10, 12];
```

## Transformations

all, any, filter, map, sortBy.

## Create your own

For examples, see ```arrayTransforms.makeTransform``` in the source code.

Note: While I don’t plan on making tons of breaking changes to ```makeTransform```, the API is still in early stages and may be tweaked in later versions (as of 0.1.0).

## License

MIT (X11). See LICENSE.
{'fraction_non_alphanumeric': 0.13448090371167296, 'fraction_numerical': 0.04518558364712211, 'mean_word_length': 3.5925925925925926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1478527', 'n_tokens_mistral': 680, 'n_tokens_neox': 595, 'n_words': 241}