main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
272 bytes
|
Line | |
---|
1 | import { both, hasIn } from 'ramda';
|
---|
2 |
|
---|
3 | import isObj from '../isObj';
|
---|
4 | import isSymbol from '../isSymbol';
|
---|
5 | import neither from '../neither';
|
---|
6 |
|
---|
7 | const isCoercible = neither(
|
---|
8 | isSymbol,
|
---|
9 | both(isObj, neither(hasIn('toString'), hasIn('valueOf')))
|
---|
10 | );
|
---|
11 |
|
---|
12 | export default isCoercible;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.