[Improvement] optimize utils (#661)
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
import { isDef } from './';
|
||||
import { isDef, isObj } from './';
|
||||
|
||||
const { hasOwnProperty } = Object.prototype;
|
||||
|
||||
function isObj(x) {
|
||||
const type = typeof x;
|
||||
return x !== null && (type === 'object' || type === 'function');
|
||||
}
|
||||
|
||||
function assignKey(to, from, key) {
|
||||
const val = from[key];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user