valueof in react native code example Example: valueof in react native const str = new String('Test') str.valueOf() //'Test'