Skip to content

Commit

Permalink
Remove RunKit examples (not working)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Jan 19, 2024
1 parent 6002df8 commit 87abfd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,5 @@
<script src="https://cdn.jsdelivr.net/npm/docsify-copy-code@2"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/external-script.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-plugin-runkit@1"></script>
</body>
</html>
16 changes: 4 additions & 12 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ Unlike native methods and other utilities, Mergician faithfully clones and merge

Basic object cloning using default options:

<div data-runkit>

```javascript
// CommonJS module shown. ES module also available (see below).
const { mergician } = require('mergician');
// ES module shown. CommonJS module also available (see below).
import { mergician } from 'mergician';

const obj1 = { a: [1, 1], b: { c: 1, d: 1 } };
const clonedObj = mergician({}, obj1);
Expand All @@ -61,15 +59,11 @@ console.log(clonedObj.a === obj1.a); // false
console.log(clonedObj.b === obj1.b); // false
```

</div>

Advanced object merging using custom options:

<div data-runkit>

```javascript
// CommonJS module shown. ES module also available (see below).
const { mergician } = require('mergician');
// ES module shown. CommonJS module also available (see below).
import { mergician } from 'mergician';

const obj1 = { a: [1, 1], b: { c: 1, d: 1 } };
const obj2 = { a: [2, 2], b: { c: 2 } };
Expand All @@ -91,8 +85,6 @@ const mergedObj = mergician({
console.log(mergedObj); // { a: [1, 2], b: { c: 2 }, hello: 'world' }
```

</div>

**Tip:** Press <kbd>⇧ Shift</kbd> <kbd>⌤ Enter</kbd> to "run" the notebook.

## Installation
Expand Down

0 comments on commit 87abfd8

Please sign in to comment.