File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 22// Deps
33// -----------------------------------------------------------------------------
44
5- import { isPlainObject } from './is-plain-object ' ;
5+ import { IPlainObject } from './types ' ;
66
77// -----------------------------------------------------------------------------
88// Helper
99// -----------------------------------------------------------------------------
1010
1111/**
12- * @param sample
12+ * @param { IPlainObject } sample
1313 * @return {boolean }
1414 */
15- export function isEmptyObject ( sample : any ) {
15+ export function isEmptyObject ( sample : IPlainObject ) {
1616 let empty = true ;
17- if ( isPlainObject ( sample ) ) {
18- for ( const key in sample ) {
19- if ( sample . hasOwnProperty ( key ) ) {
20- empty = false ;
21- break ;
22- }
17+ for ( const key in sample ) {
18+ if ( sample . hasOwnProperty ( key ) ) {
19+ empty = false ;
20+ break ;
2321 }
2422 }
2523 return empty ;
You can’t perform that action at this time.
0 commit comments