Skip to content

Commit

Permalink
feat: 🎸 add symbolsOf
Browse files Browse the repository at this point in the history
  • Loading branch information
l246804 committed Aug 15, 2023
1 parent 1f393cc commit 11f1041
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/symbolsOf/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* 获取对象的符号属性列表,同 `Object.getOwnPropertySymbols`
*/
export default function symbolsOf<T extends object>(o: T) {
return Object.getOwnPropertySymbols(o)
}

0 comments on commit 11f1041

Please sign in to comment.