Skip to content

Commit

Permalink
Merge branch 'main' into release/0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
nandi95 committed Jul 28, 2023
2 parents afe01be + 6c868b4 commit da7ce6e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/helpers/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,25 @@ Upfront provides some helper methods to help manipulate strings. All of these ar
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 @@ -32,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 @@ -45,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 da7ce6e

Please sign in to comment.