source: node_modules/ramda-adjunct/src/internal/isCoercible.js@ d24f17c

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 
1import { both, hasIn } from 'ramda';
2
3import isObj from '../isObj';
4import isSymbol from '../isSymbol';
5import neither from '../neither';
6
7const isCoercible = neither(
8 isSymbol,
9 both(isObj, neither(hasIn('toString'), hasIn('valueOf')))
10);
11
12export default isCoercible;
Note: See TracBrowser for help on using the repository browser.