Skip to content

Commit

Permalink
refactor(guard {}): freeze the object.
Browse files Browse the repository at this point in the history
  • Loading branch information
sciborrudnicki committed Sep 19, 2021
1 parent 09fb70f commit 00e8841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guard/lib/guard.object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { guardIs } from './guard-is.object';
// Import: Interface.
import { Guard } from '../interface/guard-interface';
// Export: `guard`
export const guard: Guard = { ...guardIs, is: guardIs };
export const guard: Guard = Object.freeze({ ...guardIs, is: guardIs });

0 comments on commit 00e8841

Please sign in to comment.