# c2-b9-5-1

> c2-b9-5-1 test lab

Latest version **1.0.0** (published 2022-02-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install c2-b9-5-1
pnpm add c2-b9-5-1
yarn add c2-b9-5-1
bun add c2-b9-5-1
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-02-12 |
| First published | 2022-02-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | cfce6bfe-8c4a-11ec-a8a3-0242ac120002 |
| Maintainers | cfce6bfe-8c4a-11ec-a8a3-0242ac120002 |

## Links

- npm: https://www.npmjs.com/package/c2-b9-5-1
- npm.io page: https://npm.io/package/c2-b9-5-1

## Recent versions

- 1.0.0 (latest) — 2022-02-12

## README

# C2.B9.5.1 (Пояснение: решение для задания B4.5.1 согласно формулировке задания)


## Задание

Оригинальная формулировка задания приведена [здесь](./TASK.md).


## Решение

1. Создал репозиторий
1. В репозитории создал js-файл с функциями по работе с массивами
1. Опубликовал пакет в npm.

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install --save c2-b9-5-1
```

## Usage

```js
var inArray = require('c2-b9-5-1');
console.log(inArray(['a', 'b', 'c'], 'a'));
//=> true

console.log(inArray(null, 'a'));
//=> false

console.log(inArray(null));
//=> false


arrayLast(['a', 'b', 'c', 'd', 'e', 'f']);
//=> 'f'

arrayLast(['a', 'b', 'c', 'd', 'e', 'f'], 1);
//=> 'f'

arrayLast(['a', 'b', 'c', 'd', 'e', 'f'], 3);
//=> ['d', 'e', 'f']

```

---
_Source: https://npm.io/package/c2-b9-5-1 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
