react-native-navigation的迁移库

stringUtils.js 283B

1234567891011121314
  1. // @ts-check
  2. /**
  3. * @param {string} to
  4. * @param {number} fromIndex
  5. * @param {string} what
  6. */
  7. function insertString(to, fromIndex, what) {
  8. return to.substring(0, fromIndex) + what + to.substring(fromIndex, to.length);
  9. }
  10. module.exports = {
  11. insertString
  12. }