JavaScript's String.indexOf() that allows for regular expressions.
npm install -S @jswork/next-regex-index-ofimport '@jswork/next-regex-index-of';
const str = `What's this? 这是什么?`;
const res = nx.regexIndexOf(str, /[\u4e00-\u9fa5]/);    // 13Code released under the MIT license.