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

main
Last change on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 272 bytes
RevLine 
[d24f17c]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.