function insertSpace(child, needInserted) {
	    // Check the child if is undefined or null.
	    if (child == null) {
	        return;
	    }
	    var SPACE = needInserted ? ' ' : '';
	    // strictNullChecks oops.
	    if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {
	        return _react2['default'].cloneElement(child, {}, child.props.children.split('').join(SPACE));
	    }
	    if (typeof child === 'string') {
	        if (isTwoCNChar(child)) {
	            child = child.split('').join(SPACE);
	        }
	        return _react2['default'].createElement(
	            'span',
	            null,
	            child
	        );
	    }
	    return child;
	}
// Insert one space between two chinese characters automatically.
Insert one space between two chinese characters automatically.
Insert one space between two chinese characters automatically .
function insertSpace(child, needInserted) {
	    if (child == null) {
	        return;
	    }
	    var SPACE = needInserted ? ' ' : '';
	    if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {
	        return _react2['default'].cloneElement(child, {}, child.props.children.split('').join(SPACE));
	    }
	    if (typeof child === 'string') {
	        if (isTwoCNChar(child)) {
	            child = child.split('').join(SPACE);
	        }
	        return _react2['default'].createElement(
	            'span',
	            null,
	            child
	        );
	    }
	    return child;
	}
function insertSpace ( child , needInserted ) { if ( child == null ) { return ; } var SPACE = needInserted ? ' ' : '' ; if ( typeof child !== 'string' && typeof child !== 'number' && isString ( child . type ) && isTwoCNChar ( child . props . children ) ) { return _react2 [ 'default' ] . cloneElement ( child , { } , child . props . children . split ( '' ) . join ( SPACE ) ) ; } if ( typeof child === 'string' ) { if ( isTwoCNChar ( child ) ) { child = child . split ( '' ) . join ( SPACE ) ; } return _react2 [ 'default' ] . createElement ( 'span' , null , child ) ; } return child ; }
Insert one space between two chinese characters automatically.
Insert one space between two chinese characters automatically .
// Check the child if is undefined or null. // strictNullChecks oops.