Skip to content

Commit

Permalink
edit README
Browse files Browse the repository at this point in the history
  • Loading branch information
Plamena Radneva committed Aug 11, 2019
1 parent ed55dfa commit 97e9192
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,25 @@ npm install @ardentia/deep-copy
```

Then, in the file where you want to use it:
```javascript
```typescript
//ES6 / TypeScript

import getItemCopy from '@ardentia/deep-copy';

//...
const copy = getItemCopy(<value>);
```

The library is built to be both ES6- and TypeScript-compatible.
```javascript
//node.js

const getItemCopy = require('@ardentia/deep-copy/node').default;

//...
const copy = getItemCopy(<value>);
```

The library is built to be ES6-, TypeScript and node.js-compatible.

### Examples:

Expand Down

0 comments on commit 97e9192

Please sign in to comment.