Skip to content

Commit

Permalink
chore@small
Browse files Browse the repository at this point in the history
  • Loading branch information
Deyan Totev committed Jan 14, 2024
1 parent af01210 commit c3bdebd
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17341,7 +17341,11 @@ values<T extends object, K extends keyof T>(obj: T): T[K][];
<summary><strong>R.values</strong> source</summary>

```javascript
import { type } from './type.js'

export function values(obj){
if (type(obj) !== 'Object') return []

if(!obj || typeof obj !== 'object') return []
return Object.values(obj)
}
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16150,7 +16150,11 @@ values<T extends object, K extends keyof T>(obj: T): T[K][];
<summary><strong>R.values</strong> source</summary>

```javascript
import { type } from './type.js'

export function values(obj){
if (type(obj) !== 'Object') return []

if(!obj || typeof obj !== 'object') return []
return Object.values(obj)
}
Expand Down
1 change: 1 addition & 0 deletions dist/rambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -2335,6 +2335,7 @@ function unwind(property, obj) {
}

function values(obj) {
if (type(obj) !== 'Object') return [];
if (!obj || typeof obj !== 'object') return [];
return Object.values(obj);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/rambda.umd.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion source/values.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { type } from './type.js'

export function values(obj){
if (type(obj) !== 'Object') return []

if(!obj || typeof obj !== 'object') return []
return Object.values(obj)
}
}
6 changes: 5 additions & 1 deletion src/values.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { type } from './type.js'

export function values(obj){
if (type(obj) !== 'Object') return []

if(!obj || typeof obj !== 'object') return []
return Object.values(obj)
}
}

0 comments on commit c3bdebd

Please sign in to comment.