Skip to content

Commit

Permalink
docs: another attempt at documentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nandi95 committed Jul 28, 2023
1 parent c699d7c commit 6c868b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/helpers/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,23 @@ The helper can be reached at:
<CodeGroup>

<CodeGroupItem title="Javascript">

```js
import '@upfrontjs/framework/string.min.js';
// or
import '@upfrontjs/framework/string.es.min.js';
```

</CodeGroupItem>

<CodeGroupItem title="Typescript">

```ts
import '@upfrontjs/framework/src/string';
```

</CodeGroupItem>

</CodeGroup>


Expand All @@ -33,10 +38,13 @@ The signature of the methods on the `String.prototype` methods matches the below
<CodeGroup>

<CodeGroupItem title="String.prototype">

```js
'The quick brown fox jumps over the lazy dog.'.after('over ').before('.').plural().ucFirst().finish('?'); // 'The lazy dogs?'
```

</CodeGroupItem>

<CodeGroupItem title="Helper methods">

```js
Expand All @@ -46,6 +54,7 @@ finish(ucFirst(plural(before(after('The quick brown fox jumps over the lazy dog.
```

</CodeGroupItem>

</CodeGroup>

#### ucFirst
Expand Down

0 comments on commit 6c868b4

Please sign in to comment.